OS: Linux (possibly any)
Selenium Version: python selenium 3.6.0, selenium standalone > 3.4
Browser: Any
Browser Version:
WebDriverException: Message: Unable to find command matching POST to //session
Then i use selenium standalone > 3.4 and last (3.6.0) python selenium, on any command i has this error.
Possibly fix, in remote/remote_connection.py delete all leading / on commands.
Sounds like you have an extra slash / at the end of your command_executor URL.
Please provide concise reproducible test case so that we can act on this issue. Once this is done the issue will be re-opened. See CONTRIBUTING.md
For example, it should be:
WebDriver(command_executor='http://127.0.0.1:4444/wd/hub')
Not
WebDriver(command_executor='http://127.0.0.1:4444/wd/hub/')
Most helpful comment
For example, it should be:
Not