问题描述
Chrome浏览器版本:43.0.2357.134 m
Selenium版本:selenium-java-3.0.0-beta2
代码:
code> 将于稍后发布,因此我建议您降级,并使用它直到最终版本的不会被释放。
或者如果您想使用此,那么您需要将Chrome浏览器升级到最新版本,并且。
Chrome browser version: 43.0.2357.134 m
Selenium version: selenium-java-3.0.0-beta2
Code:
package Selenium_Practice; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Launch_NewGen { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\Selenium\\Selenium_Practice\\EXEs\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://google.com"); }Error:
Is this the case that chrome browser version is not supportive? Is there any possible resolution without upgrading Chrome browser?
解决方案Actually you are using beta version of selenium 3.0, in this might be many bugs. The final selenium 3.0 will be release later, so I would suggest to you downgrade you selenium version to 2.53.1 and work with it until final version of selenium 3.0 would not be released.
Or If you want to work with this selenium 3.0 beta version then you need to upgrade your chrome browser to latest version and download the latest chromedriver as well.
这篇关于Chrome浏览器没有通过Selenium调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!