我试图用Selenium Webdriver
启动Chrome和使用下面的代码:如何在Selenium webdriver中打开chrome?
System.setProperty("webdriver.chrome.driver",
"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe");
WebDriver driver=new ChromeDriver();
driver.get("http://www.yahoo.com");
Chrome浏览器打开,但没有进一步进行。可能是以下错误的原因:
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
我认为zip文件可用于32位,但我使用的是64位机器。无论如何,我下载仍然得到相同的错误 – Shyamala
@Shyamala似乎目前没有WinD64位的ChromeDriver。 [不知道,可能是Win-32 bit works] –
您是否尝试过我选择复选框的解决方案?尝试我的用例,而不是Thread.sleep() –