selenium无法启动firefox浏览器

selenium无法启动firefox浏览器

报错如下:
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
将geckodriver.exe驱动文件放在当前脚本文件所在目录下,即可。

目前在用的版本是:
win7+python3.4.3+selenium3.12.0+Firefox47.0.1+Google50.0.2661.102
win7+python3.6.6(32bit)+selenium3.12.0+Firefox47.0.1+Google50.0.2661.102

Python用于自动化测试,如UI自动化测试(Python+Selenium等)、接口测试(Python requests等)、性能测试(Python Locust等)、安全性测试(Python Scapy等)、兼容性测试(Python+Selenium等)

猜你喜欢

转载自blog.csdn.net/fnms88/article/details/82838891