springboot selenium 网页文件转图片环境 搭建 springboot selenium 网页文件转图片环境的详细教程

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

springboot selenium 网页文件转图片环境 搭建 springboot selenium 网页文件转图片环境的详细教程

crazyCodeLove   2021-02-02 我要评论
想了解搭建 springboot selenium 网页文件转图片环境的详细教程的相关内容吗,crazyCodeLove在本文为您仔细讲解springboot selenium 网页文件转图片环境的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:springboot,selenium,网页文件转图片环境,springboot,selenium,文件转图片环境,下面大家一起来学习吧。

1. 环境准备

需要有 chrome 浏览器 + chrome driver + selenium 客户端

离线 chrome 下载地址

# 64位 linux 系统
https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

# 64位 weindow 系统
http://www.google.cn/chrome/browser/desktop/index.html?standalone=1&platform=win64

# 32位 weindow 系统
http://www.google.cn/chrome/browser/desktop/index.html?standalone=1&platform=win

# 官网 chromedriver
http://chromedriver.storage.googleapis.com/index.html

# 淘宝 chromedriver 镜像
https://npm.taobao.org/mirrors/chromedriver/

说明:chrome 和 chromedriver 版本需要一致

1.2 查看 chrome 版本信息。在chrome浏览器输入以下地址

chrome://version/

1.3 例如我选择的是

2. 将 chromedriver 放到 chrome 安装目录下

3. 在 springboot 项目中引入 selenium 依赖

<dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>3.141.59</version>
    </dependency>

4

参考文献:

https://blog.csdn.net/l707268743/article/details/80942246

https://www.cnblogs.com/sqy123/p/9057348.html#_labelTop

https://www.cnblogs.com/lfri/p/10542797.html

猜您喜欢

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们