今天在准备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了。
版权声明:本文为began2009原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。