![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
余三二
这个作者很懒,什么都没留下…
展开
-
It is indirectly referenced from required .class files解决方法
背景:学习webmagic过程中,为了解决爬取动态网页的问题,所以使用selenium,在浏览各个博主的文章,相继添加了多个有关selenium的依赖。报错详情:在代码首行报错The type org.openqa.selenium.interactions.HasTouchScreen cannot be resolved. It is indirectly referenced fro...原创 2019-04-04 11:32:07 · 867 阅读 · 0 评论 -
运行java爬虫项目出现unknown error: call function result missing 'value'
错误详情:Exception in thread “main” org.openqa.selenium.WebDriverException: unknown error: call function result missing ‘value’错误原因:chromedriver和chrome版本不匹配匹配详情参考:selenium和chrom版本安装如果chrome的版本更高级,就...原创 2019-04-09 14:45:27 · 605 阅读 · 0 评论 -
访问百度首页--java+selenium+chromedriver项目(一)
今日份的学习,利用chromedriver的无头特性直接访问百度首页运行环境:windows7chrome 76.0.3809.100chromedriver 72.0.3626.69eclipse步骤:1、创建maven项目,过程略2、pom.xml中添加依赖(目前(算不上功能的)功能这一个就够了)<dependency> <groupId&g...原创 2019-08-21 18:01:22 · 688 阅读 · 0 评论 -
java+selenium+chromedrive实现全屏截图
File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);Files.copy(scrFile, new File(filePath));原创 2019-08-22 09:48:04 · 2986 阅读 · 1 评论 -
76.0.3809.100版本的谷歌浏览器对应能用的chromedriver版本
不对应的版本:77.0.3865.10 (session not created: This version of ChromeDriver only supports Chrome version 77)77.0.3864.40 (session not created: This version of ChromeDriver only supports Chrome version 7...原创 2019-08-22 12:05:30 · 5185 阅读 · 4 评论