2017-09-25 110 views
1

我试着用Selenium 3.5.3 GeckoDriver 0.19 Firefox 55但得到下面的异常:哪个firefox版本兼容selenium 3.5.0?

Error: org.openqa.selenium.WebDriverException: browser name not boolean 

代码:

  DesiredCapabilities cap = DesiredCapabilities.firefox(); 
      WebDriver driver = null; 
      System.setProperty("webdriver.gecko.driver", "<path to gecko>\geckodriver.exe"); 
      cap.setBrowserName("firefox"); 
      URL sURL= null; 
      cap.setCapability("firefox_binary", "<FIREFOX_PATH>")); 
      //Grid    
      sURL = new URL("http://localhost:5555/wd/hub"); 
      driver = new RemoteWebDriver(sURL, cap); 

也看到这个线程https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/硒IDE将不能再在Firefox 55支持。硒罐是否仍会支持?

+0

硒3.5.2与上述组合兼容。 – Sudeepthi

+0

您发现的博客文章引用了[Selenium IDE for Firefox](https://a9t9.com/howto/getseleniumide)问题* only *。 Webdriver不受此问题的影响。 –

+0

@Sudeepthi与Selenium 3.5.2,firefox 55,gecko 0.19相同的异常:相同的异常错误:org.openqa.selenium.InvalidArgumentException:browserName不是布尔型 –

回答

0

我建议你使用Firefox 54.0和geckodriver v0.18.0。

其实这个链接关于Selenium IDE。你也可以使用firefox 55。

+0

尝试使用Firefox 54.0和gecko v0.18.0 ..相同的异常错误:org.openqa.selenium.InvalidArgumentException:browserName不是布尔值 构建信息:版本:'3.5.2',修订版本:'10229a9020' ,时间:'2017-08-21T17:54:21.164Z' –

+0

可以ü请将您的代码粘贴到日志中 – iamsankalp89

+0

可以粘贴吗? – iamsankalp89

相关问题