问题描述
我在Firefox 48.0中从firefox 47的新更新中遇到错误
I am getting an error in Firefox 48.0 in new the update from firefox 47
我的系统和浏览器配置为:
My system and browser configuration are:
硒2.48也尝试2.53
Selenium 2.48 also try 2.53
Window 8 64bit
Window 8 64bit
我也尝试了木偶驱动程序,但是没有收到正确的输出.
I also tried the marionette driver but did not receive proper output with that.
除了降级Firefox以外,还有其他解决方法吗?
Any ideas on how to fix this besides downgrading firefox?
推荐答案
我发现了另一个有关Firefox 48和Selenium 3.0.0(Beta 3)的问题的解决方案,因为Selenium 2.48无法正常工作.
I found another solution for my question with Firefox 48 and Selenium 3.0.0(Beta 3) because Selenium 2.48 didn't work.
如果要运行Selenium脚本,则必须下载....
If you want run selenium script then you have to download....
GeckoDriver exe- http://www.seleniumhq.org/download/
GeckoDriver exe - http://www.seleniumhq.org/download/
put below code in your script
public class FirefoxTest{
public static void main(String args[]) throws InterruptedException{
System.setProperty("webdriver.gecko.driver", "Path + geckodriver.exe");
//For E.g ("webdriver.gecko.driver", "C://geckodriver.exe")
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette",true);
WebDriver driver = new FirefoxDriver(capabilities);
String baseUrl = "https://www.google.com";
driver.get(baseUrl);
}
}
这篇关于Selenium 2.53或2.48在Firefox 48.0中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!