2018年9月14日

摘要: selenium2时打开firefox浏览器是不需要安装firefoxdriver的,但是selenium3不支持向前支持火狐浏览器了,40以后版本的火狐,运行会出现问题。 1、下载geckodriver https://github.com/mozilla/geckodriver/releases 阅读全文
posted @ 2018-09-14 22:42 lzylh_56 阅读(175) 评论(0) 推荐(0) 编辑
 
摘要: 0、jdk8 和eclipse 4.6 https://www.eclipse.org/downloads/packages/release/neon/3 1、selenium-server-standalone-3.9.1 http://selenium-release.storage.googl 阅读全文
posted @ 2018-09-14 17:19 lzylh_56 阅读(173) 评论(0) 推荐(0) 编辑
 
摘要: selenium-server-standalone包是Seleniumd的核心jar包,其中包含了各种元素定位和调用浏览器的方法。下载jar包后,在IDE中导入jar包就可以了。 https://www.seleniumhq.org/download/ 2、 点击java project,右键,b 阅读全文
posted @ 2018-09-14 15:41 lzylh_56 阅读(209) 评论(0) 推荐(0) 编辑
 
摘要: 新建一个方法,加注解@Test,出现错误,鼠标悬浮 (1)convert to testng annotations (2)add testng library 阅读全文
posted @ 2018-09-14 14:43 lzylh_56 阅读(109) 评论(0) 推荐(0) 编辑
 
摘要: Eclipse安装TestNG TestNG官网地址:http://testng.org/ 1、离线安装TestNG插件: 受网络等因素影响,在线安装方式速度比较慢,可以通过如下方式离线安装TestNG插件。 通过浏览器直接访问网址, http://beust.com/eclipse,选择最下部的z 阅读全文
posted @ 2018-09-14 14:39 lzylh_56 阅读(126) 评论(1) 推荐(0) 编辑