selenium,初学使用chrome时报错
来源:互联网 发布:db2数据库创建用户 编辑:程序博客网 时间:2024/05/01 14:51
selenium,初学使用chrome时报错
导入chromedriver后报错
Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:111)
at org.openqa.selenium.chrome.ChromeDriverService.access
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:302)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:88)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:124)
at eooa.chrome.main(chrome.java:19)
原因:selenium的java和standalone包的问题,更新为最新的包就ok了
ps:安装使用firefox时,也会有提示找不到方法,多半是因为版本不一致,在网上找到相应版本,基本就ok了
贴上上面chrome的报错,是因为在网上没看到有人报相似的错误,所以贴上给大家看看
- selenium,初学使用chrome时报错
- 用java+selenium启动chrome浏览器时报错Exception in thread "main" org.openqa.selenium.NoSuchSession
- selenium使用chrome浏览器
- Selenium 初学笔记--Selenium IDE-简单使用
- selenium使用chrome时,报错ignore certificate errors
- selenium中chrome浏览器的使用_09
- docker 中使用 selenium + chrome 出现 chrome 崩溃的解决办法
- selenium 使用FirefoxDriver时报错Make sure firefox is installed问题
- selenium 调用chrome driver 报错
- Selenium 初学笔记--Selenium简介
- 利用selenium时,chrome和firfox使用代理ip
- selenium使用chrome抓取自动消失弹框的方法
- Linux 使用selenium chrome实现爬虫的两个坑
- 使用MediaPlayer时报错
- 使用yum时报错
- selenium webdriver在eclipse里面执行时报错
- 运行selenium时报错:Unsupported major.minor version 52.0
- selenium 初学一
- Matplotlib学习笔记(一)
- OpenGL开发学习指南一(freeglut+glew)
- UML静态结构设计中的各种符号以及关系解读
- 关于spring mvc 的alwaysUseFullPath配置
- 3.1栈的入门——概念与应用
- selenium,初学使用chrome时报错
- POJ
- SSM二级缓存ehcache
- 面试总结(一)
- 官网适配手机诀窍
- 基于fedora的.ks文件结构汇总
- 程序员的思维修炼读书笔记(一)
- HTML5-java-web基础-eclipse
- stm32学习笔记(七)定时器中断