都是通过google解决的,其实本应该很快解决,可是因自己粗心,大写小错了,加上java基础不过关,
"webdriver.chrome.driver"中的webdriver应是全小写才对
1.chrome更新到最新后,在eclipse运行提示:
"Unknown command 'WaitForAllTabsToStopLoading'. Options: AcceptOrDismissA........后面一堆
---解决办法:把chromedriver.exe下载到最新版本(发现没找到64位,经过google可以用32位的代替)
System.setProperty("webdriver.chrome.driver", "F:\selenium\workspace\fj10086\chromedriver.exe");
driver = new ChromeDriver();
2.WIN7+IE10下,自动化输入字符非常慢:
---解决办法:把IEDriverServer.exe的X64位用32位代替即可
System.setProperty("webdriver.ie.driver", "F:\selenium\workspace\fj10086\IEDriverServer.exe");
DesiredCapabilities iecapabilities = DesiredCapabilities.internetExplorer();
iecapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
driver = new InternetExplorerDriver(iecapabilities);