Search code examples
javaseleniumtestingfirefox-marionettegeckodriver

Getting error: Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context


When I am running my selenium code I get the error "error: Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context"

I am having Firefox 48.0 Using gecko driver i have initialized browser. And getting the above mentioned error.


Solution

  • Issue is resolved as there is problem "In the current revision (after 0.9.0), the argument webdriver-port was renamed to port. This causes selenium to fail launching firefox via geckodriver, returning an invalid argument error in geckodriver" hence have downgrade the geckodriver v0.10 to v0.9. now it is working for me