摘要: public class BaiduTest { @Test public void test() { //设置驱动属性 System.setProperty("webdriver.chrome.driver", "resources/chromedriver.exe"); //创建驱动 WebDr 阅读全文
posted @ 2020-07-30 22:41 Mr_sven 阅读(829) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.53.1</version> </dependency> 阅读全文
posted @ 2020-07-30 22:31 Mr_sven 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 1.打开maven解压的文件,找到config目录下面的settings.xml文件 2.在settings.xml文件中添加阿里云的地址 <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.co 阅读全文
posted @ 2020-07-30 22:21 Mr_sven 阅读(5789) 评论(0) 推荐(0) 编辑
摘要: 【chrome各版本下载】 http://www.chromedownloads.net/chrome64win/ 【fireFox各版本下载】 http://ftp.mozilla.org/pub/firefox/releases/ 【chromeDriver下载地址】 http://npm.ta 阅读全文
posted @ 2020-07-30 21:47 Mr_sven 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 【JDK版本问题】 使用3.x的selenium来完成自动化测试时,代码报错如下: Exception in thread "main" java.lang.UnsupportedClassVersionError 错误总结: 3.x的selenium需要1.8版本的jdk。 【chromedriv 阅读全文
posted @ 2020-07-30 20:00 Mr_sven 阅读(87) 评论(0) 推荐(0) 编辑