Selenium - 無法解析java.lang.CharSequence類型。它是從所需的.class文件中間接引用的 我是硒的新手,有沒有人可以幫助解決這個問題?Selenium - 無法解析java.lang.CharSequence類型。它從所需的.class文件間接引用
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.ie.driver",System.getProperty("user.dir")+ "\\iedriver\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();
driver.get("https://accounts.google.com/ServiceLogin?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1#identifier");
WebElement username = driver.findElement(By.id("Email"));
username.sendKeys("selenium");
}
您可以添加更多信息如下:1.您的目標是什麼? 2.你想達到什麼目的? 3.你現在還在嘗試什麼,發佈你的代碼。 4.什麼對你有用? 5.你卡在哪裏? 6.提供示例HTML DOM。 – DebanjanB
Eclipse不允許使用功能發送鍵 –
嘗試將ECLIPSE更新爲更高版本。 – kushal