How can I tell webdriver-io to use firefox developer edition instead of normal firefox? I need to use CSS4 selectors which normal firefox does not support. I read the documentation but I can not find the option.
Asked
Active
Viewed 2,196 times
2 Answers
2
You need to redefine the location of Firefox by either setting set the binary
capability:
var webdriverio = require('webdriverio');
var options = {
desiredCapabilities: {
browserName: 'firefox',
firefox_binary: 'C:\\...\\firefox.exe'
}
};
Or by starting the standalone server with a new binary path:
java -jar "selenium-server-standalone-x.x.x.jar" -Dwebdriver.firefox.bin="C:\...\firefox.exe"

Florent B.
- 41,537
- 7
- 86
- 101
-
-
My bad, it was `firefox_binary` instead of `binary`. Note that the latest dev version is probably not yet compatible with the driver. – Florent B. Apr 27 '16 at 01:07
0
Florent, thanks for answer, I used it to test my application with Firefox Quantum. I used Firefox Developer Version, which already contains Firefox Quantum Beta 14, and added in my BrowserFactory Class:
else if (browserName.equals ("quantum") {
FirefoxOptions options = new FirefoxOptions();
System.setProperty ("webdriver.gecko.driver", "src/test/resources/drivers/geckodriver.exe");
System.setProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE,"true");
System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE,javaIoTmpDir+"\\geckodriverlogs.txt");
System.setProperty("webdriver.firefox.bin", "C:\\Portable\\FirefoxPortableDeveloper\\App\\Firefox64\\firefox.exe");
driver = new FirefoxDriver(options);

Krzysztof Walczewski
- 670
- 9
- 15