无法使用selenium web驱动程序2.45.0打开firefox 35

无法使用selenium web驱动程序2.45.0打开firefox 35,firefox,selenium,webdriver,Firefox,Selenium,Webdriver,基于stackoverflow的建议和评论,我无法在Mozilla 35.0.1上运行selenium webdriver脚本。我将firefox降级为firefox 28.0.1,但仍然面临同样的问题。浏览器正在加载,但未在地址栏中写入url链接。在firefox 17.0.1上运行相同的脚本升级firefox时,我遇到了相同的问题 请试一试 driver.get;方法 排队前 driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECO

基于stackoverflow的建议和评论,我无法在Mozilla 35.0.1上运行selenium webdriver脚本。我将firefox降级为firefox 28.0.1,但仍然面临同样的问题。浏览器正在加载,但未在地址栏中写入url链接。在firefox 17.0.1上运行相同的脚本

升级firefox时,我遇到了相同的问题

请试一试 driver.get;方法 排队前

driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);

这对我很有效。

有时候,在Mozilla Firefox的例子中会出现这个问题。试试谷歌浏览器

我尝试了几种方法,但都没用。所以我选择了铬。 Chrome可以使用以下代码打开

System.setProperty("webdriver.chrome.driver", "ChromeDriver Location in your PC");

WebDriver driver = new ChromeDriver();
请也添加此库

import org.openqa.selenium.chrome.ChromeDriver;