mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.2k stars 1.52k forks source link

macOS remote gecko driver HTTP method not allowed #2018

Closed alexandre-senecal closed 2 years ago

alexandre-senecal commented 2 years ago

System

Testcase

Start up the driver with ./geckodriver -vv 1652365816926 geckodriver INFO Listening on 127.0.0.1:4444

Navigate to 127.0.0.1:4444 and get "HTTP method not allowed"

Running in Eclipse through the Java Selenium works fine unless I try to configure a remote driver with remote address "http://localhost:4444/wd/hub" this results in the following stacktrace output "Factory method 'remoteFirefox' threw exception; nested exception is org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Unable to parse remote response: HTTP method not allowed"

Trace-level log

No logs from the geckodriver

alexandre-senecal commented 2 years ago

Apologies, I was using the wrong URI for the remote address of the driver. Using "http://localhost:4444/" worked fine in eclipse with a remote driver. I believe I confused the selenium grid URI for the hub with the standalone URI for a single web driver.