5--Selenium环境准备--firefox与geckodriver
摘要:selenium2时打开firefox浏览器是不需要安装firefoxdriver的,但是selenium3不支持向前支持火狐浏览器了,40以后版本的火狐,运行会出现问题。 1、下载geckodriver https://github.com/mozilla/geckodriver/releases
阅读全文
4--Selenium环境准备---chromedriver.exe 与chrome版本匹配
摘要: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
阅读全文
3--Selenium环境准备--Eclipse 引入 selenium-server包
摘要:selenium-server-standalone包是Seleniumd的核心jar包,其中包含了各种元素定位和调用浏览器的方法。下载jar包后,在IDE中导入jar包就可以了。 https://www.seleniumhq.org/download/ 2、 点击java project,右键,b
阅读全文
2--Selenium环境准备--第一次使用Testng
摘要:新建一个方法,加注解@Test,出现错误,鼠标悬浮 (1)convert to testng annotations (2)add testng library
阅读全文
1--Selenium环境准备--Eclipse 添加Testng插件
摘要:Eclipse安装TestNG TestNG官网地址:http://testng.org/ 1、离线安装TestNG插件: 受网络等因素影响,在线安装方式速度比较慢,可以通过如下方式离线安装TestNG插件。 通过浏览器直接访问网址, http://beust.com/eclipse,选择最下部的z
阅读全文