运行我的JAVA Webdriver代码时出现错误。与ChromeDriver有关
从此处->在下载下下载最新版本的Chrome驱动程序。
下载zip文件并解压缩内容。内容将包含您需要使用的exe。您也可以使用-进行设置
System.setProperty('webdriver.chrome.driver', 'C:://you_path_for_exe//chromedriver.exe');解决方法
当我尝试运行以下代码时,出现与错误有关的信息ChromeDriver。
我对此 并不陌生, 但是 我可以看到代码到达了第11行,但随后失败了 。
线程“主”中的异常java.lang.IllegalStateException:驱动程序可执行文件不存在:org上位于com.google.common.base.Preconditions.checkState(Preconditions.java:199)的C:Matts Learning ChromeDriver ChromeDriver。位于org.openqa.selenium.chrome.ChromeDriverService的org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:116)的openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:121)在org.openqa.selenium.remote.service.DriverService$ Builder.build(DriverService.java)处访问$000(ChromeDriverService.java:32)在org.openqa.selenium.chrome.ChromeDriverService$ Builder.findDefaultExecutable(ChromeDriverService.java:137):296),网址:org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:88)。位于TestTiscaliLogin.main的openqa.selenium.chrome.ChromeDriver。(ChromeDriver.java:116)(TestTiscaliLogin.java:13)
相关文章:
1. sass - gem install compass 使用淘宝 Ruby 安装失败,出现 4042. javascript - js 对中文进行MD5加密和python结果不一样。3. mysql里的大表用mycat做水平拆分,是不是要先手动分好,再配置mycat4. window下mysql中文乱码怎么解决??5. 为啥不用HBuilder?6. python - (初学者)代码运行不起来,求指导,谢谢!7. javascript - h5上的手机号默认没有识别8. python - 获取到的数据生成新的mysql表9. python的文件读写问题?10. 为什么python中实例检查推荐使用isinstance而不是type?
