0
您好我正在使用我的Raspberry Pi,並且在Python 3.4中使用了Selenium 3.4.2,並且遇到了一個問題,使得Selenium可以在Iceweasel中工作。無法找到一組匹配的功能
從這個代碼塊
webdriver.Firefox(executable_path="/home/pi/Desktop/geckodriver")
我得到這個
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
webdriver.Firefox(executable_path="/home/pi/Desktop/geckodriver")
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/webdriver.py", line 152, in __init__
keep_alive=True)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException:
Message: Unable to find a matching set of capabilities
版本:
- 硒3.4.2
- 的Python 3
- Iceweasel 45.9 .0esr-1〜德b8u1
'geckodriver'的版本是? – alecxe