Firefox driver quit working - New Download + ENV Path Fix Didn't work

121 views
Skip to first unread message

John Pulwers

unread,
Apr 9, 2020, 12:57:53 PM4/9/20
to seleniu...@googlegroups.com
I had the Firefox driver working, then it quit working. I downloaded it again, and pointed the ENV Path to the location of the download and Restarted the machine, but now it fails with: "  "Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line (SessionNotCreated)".

image.png



Virus-free. www.avast.com

Anil Gursahani

unread,
Apr 9, 2020, 3:33:06 PM4/9/20
to Selenium Users
Hi John,

As a workaround you can try using the System.setProperty command as follows:

FirefoxOptions firefoxOptions ;
firefoxOptions = new FirefoxOptions();
/* Example if geckodriver.exe is in "C:\Selenium" */
System.setProperty("webdriver.gecko.driver", "C:\\Selenium\\geckodriver.exe");

Hope this helps.

Anil

Anil Gursahani

unread,
Apr 9, 2020, 4:16:35 PM4/9/20
to Selenium Users
Forgot this line;

driver = new FirefoxDriver(firefoxOptions);
Reply all
Reply to author
Forward
0 new messages