2017-09-25 138 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

相關問題