selenium3环境搭建步骤:
1、安装最新版的火狐浏览器(62.0.3)用于测试,安装31版本的用于抓xpath
2、下载最新selenium的jar包(3.14.0)需要
https://www.seleniumhq.org/download/
3、把selenium-java-3.14.0里面所有的jar包都导入项目中
4、下载selenium-server-standalone-3.4.0.jar,在做分布式测试时需要启动
5、执行 brew install geckodriver 下载火狐的驱动,参考:https://blog.csdn.net/u012911704/article/details/78215967?locationNum=5&fps=1
6、启动浏览器的代码
System.setProperty("webdriver.firefox.bin", "/Applications/Firefox.app/Contents/MacOS/firefox");
driver = new FirefoxDriver();
7、安装testngÿ