赞
踩
http://npm.taobao.org/mirrors/chromedriver/
http://chromedriver.storage.googleapis.com/index.html
ChromeDriver版本 | 谷歌浏览器版本 |
---|---|
ChromeDriver v2.35 | Chrome v62-64 |
ChromeDriver v2.36 | Chrome v63-65 |
ChromeDriver v2.37 | Chrome v64-66 |
ChromeDriver v2.38 | Chrome v65-67 |
ChromeDriver v2.39 | Chrome v66-68 |
ChromeDriver v2.40 | Chrome v66-68 |
ChromeDriver v2.41 | Chrome v67-69 |
ChromeDriver v2.42 | Chrome v68-70 |
ChromeDriver v2.43 | Chrome v69-71 |
ChromeDriver v2.44 | Chrome v69-71 |
ChromeDriver v2.45 | Chrome v70-72 |
http://npm.taobao.org/mirrors/geckodriver
https://github.com/mozilla/geckodriver/releases
由于在工作中没有大量使用火狐浏览器来运行过,所以可以参考下面这个链接:
https://blog.csdn.net/yinshuilan/article/details/79730239
http://selenium-release.storage.googleapis.com/index.html
参考链接:https://blog.csdn.net/liudong124521/article/details/89453416
Internet选项->安全->四个选项的启用保护模式都取消
Internet->高级中的增强模式关闭
注册表-注册表下面路径添加项
\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer
\Main\FeatureControl\FEATURE_BFCACHE
//设置ChromeDriver的路径
System.setProperty("webdriver.chrome.driver","D:\\chromedriver79.exe");
//启动浏览器
WebDriver driver = new ChromeDriver();
System.setProperty("webdriver.gecko.driver","路径");
WebDriver driver = new FirefoxDriver();
System.setProperty("webdriver.edge.driver","路径");
WebDriver driver = new EdgeDriver();
System.setProperty("webdriver.ie.driver","路径");
// ie浏览器安全设置
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer ();
ieCapabilities.setCapability ( InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true );
InternetExplorerOptions option = new InternetExplorerOptions ( ieCapabilities );
WebDriver driver=new InternetExplorerDriver(option)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。