Created
October 26, 2020 16:50
-
-
Save seleniumgists/da395180bed016abd08c06c51860ebcc to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from selenium import webdriver | |
| browser = webdriver.Firefox() | |
| browser.get('<http://seleniumhq.org/>')``` | |
| and I get an error. | |
| ```selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities``` | |
| so then I try to load the capabilities using | |
| ```from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| cap = DesiredCapabilities().FIREFOX | |
| browser = webdriver.Firefox(capabilities=cap) | |
| browser.get('<http://seleniumhq.org/>')``` | |
| and I get another error | |
| ```DeprecationWarning: capabilities has been deprecated, please pass in a Service object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment