J & # 39; uses:
- Debian version 9.6
- Python 2.7
- Selenium 3.141.0
- Firefox 60.3.0
I'm trying to learn how to use Selenium with Python, but I still have not been able to do anything. Always give an error, I correct that I found the solutions but in the last I can not.
FAULT:
root @ debian: / home / yan / prog # python automate.py
Traceback (most recent call last):
"Automate.py" file, line 3, in
browser = webdriver.Firefox ()
"/Usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py" file, line 174, in __init__
keep_alive = True)
"/Usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py" file, line 157, in __init__
self.start_session (features, browser profile)
"/Usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py" file, line 252, in the start_session
response = self.execute (Command.NEW_SESSION, parameters)
"/Usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py" file, line 321, in execution
self.error_handler.check_response (answer)
"/Usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py" file, line 242, in check_response
raise exception_class (message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Can not find a matching capability set