user104317 user104317 - 7 months ago 166
Javascript Question

How can I tell webdriver-io to use firefox developer edition?

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.

Answer

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"
Comments