python做自动化测试时候,selenium启动火狐驱动打开浏览器一直报错如下
问题遇到的现象和发生背景</G:\PyCharm\pythonProject\li_qian\venv\Scripts\python.exe G:/PyCharm/pythonProject/li_qian/demo_04.py
Traceback (most recent call last):
File "G:\PyCharm\pythonProject\li_qian\demo_04.py", line 11, in
mx = webdriver.Firefox()
File "G:\Python\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 151, ininit
RemoteWebDriver.init(
File "G:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 92, ininit
self.start_session(desired_capabilities, browser_profile)
File "G:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 183, in start_session
self.capabilities = response['value']
KeyError: 'value'>问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
value的值也写出来 版本是否不兼容 我一般在chrome浏览器,觉得挺爽的
页:
[1]