今天在准备java的selenium环境时,需要用到selenium包,久经周折最后才找到,记录下过程。
1. 官网下载
http://www.seleniumhq.org/download/
https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.0.0/selenium-java-4.0.0.zip
结果网站打不开,可能被墙了。
2. 通过Maven安装
进入 https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/4.0.0 页面,复制dependency内容到pom.xml,结果Load完成后,控制台报错找不到对应的包。
3. 最终解决版本
http://selenium-release.storage.googleapis.com/index.html
到这里下载了需要的版本的selenium-server-standalone jar包,导入到IDE中,即可正常使用selenium了。
本文记录了在配置Java Selenium环境时遇到的下载问题,包括官网下载失败、Maven安装出错,最终在Google Storage找到并成功安装selenium-server-standalone.jar的过程。
785

被折叠的 条评论
为什么被折叠?



