Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created October 26, 2020 16:50
Show Gist options
  • Select an option

  • Save seleniumgists/da395180bed016abd08c06c51860ebcc to your computer and use it in GitHub Desktop.

Select an option

Save seleniumgists/da395180bed016abd08c06c51860ebcc to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
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