自动化测试辅助工具安装_1
安装Firefox浏览器
浏览器下载地址:
http://www.firefox.com.cn/
Firefox历史版本下载地址:
http://ftp.mozilla.org/pub/firefox/releases/
我刚开始学习的时候下载所有工具信息如下:
Python3.7.0
pip 18.1
selenium3.14.0
geckodriver0.23.0
firefox 47.0.2
后来用PyCharm写了一段用webdriver打开百度网页的代码,虽然可以打开Firefox浏览器但是没法打开百度网页
报错信息如下:
报错:
C:\Users\Administrator\AppData\Local\Programs\Python\Python35\python.exe
C:/Users/Administrator/PycharmProjects/untitled/webtest/test_1.py
Traceback (most recent call
last):
File
“C:/Users/Administrator/PycharmProjects/untitled/webtest/test_1.py”,
line 3, in
browser = webdriver.Firefox()
File
“C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\selenium\webdriver\firefox\