“selenium.common.exceptions.SessionNotCreatedException: Message: session not created: No matching capabilities found”

I had been banging my head on this error for literally DAYS. Why is Selenium rejecting to launch? I past it some Options but why is it refusing to even launch????

Turned out,

I did this:

from selenium.webdriver.firefox.options import Options

and tried to past it to a Chrome WebDriver as “Options” when I should have imported

from selenium.webdriver.chrome.options import Options

I am not a smart man…

I was googling so much and the top Google results mentioned using OperaDrivers, using Edge Drivers etc and running into similar issues. Most likely, some sort of configurations are past wrong. In my case, it was very obvious. I even went digging into ChromeDriver vs Chrome version compatibility issue (just leave TravisCI to ensure their compatibility but print out versions explicitly doesn’t hurt… either)