Meta -
OS: Windows 10
Selenium Version: 3.5.*, 3.4.0
Browser: Firefox
Browser Version: 55.0.3 (64-bit)
On versions 3.5.0 and higher, Selenium node does not pass the command line arguments to geckodriver.
Expected Behavior -
If the node receives moz:firefoxOptions with args, all args should be passed to geckodriver so that Firefox can be started with the correct command line params.
Actual Behavior -
Args are not being passed to geckodriver. Tested with -profile.
Steps to reproduce -
- Have selenium grid set up and running
- Create your browser with the following Firefox options:
FirefoxOptions options = new FirefoxOptions();
options.addArguments("-profile", "./firefoxprofile");
- Observe the Selenium node log (args are not passed to geckodriver)
12:32:14.961 INFO - Capabilities {androidServerPort=7100, appInstall=true, marionette=true, browserName=firefox, serverPort=5769, moz:firefoxOptions={args=[-profile, ./firefoxprofile], prefs={}, }, platformName=ANY, version=, uuid=09af7ada-5a10-4840-a58b-358..., platform=ANY, } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
1505935934992 geckodriver INFO geckodriver 0.19.0
1505935935008 geckodriver INFO Listening on 127.0.0.1:5137
1505935935586 mozrunner::runner INFO Running command: "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" "-marionette" "-profile" "C:\\Users\\Selenium\\AppData\\Local\\Temp\\rust_mozprofile.Fb9H6o79oRbe"
Variations -
- Reproducible using Selenium v3.5.0, v3.5.1, v3.5.2, v.3.5.3 using geckodriver v0.16, v0.17, v0.18, v0.19
- Using Selenium v3.4.0 and geckodriver v0.19, the browser is started with the correct args, but Selenium hangs (the browser itself remains functional)
Meta -
OS: Windows 10
Selenium Version: 3.5.*, 3.4.0
Browser: Firefox
Browser Version: 55.0.3 (64-bit)
On versions 3.5.0 and higher, Selenium node does not pass the command line arguments to geckodriver.
Expected Behavior -
If the node receives
moz:firefoxOptionswithargs, all args should be passed to geckodriver so that Firefox can be started with the correct command line params.Actual Behavior -
Args are not being passed to geckodriver. Tested with
-profile.Steps to reproduce -
Variations -