-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium node does not pass the command line arguments to geckodriver #4730
Comments
Is the profile you're trying to use on the local machine or on the node machine? |
The profile is on the node, that's why I'm passing the path in the args. |
You're trying to use a relative path though? Can you try using an absolute path? I believe the preferred method for using a profile at the node is by using |
I get the same result with absolute path too, as well as using Looking at the below logs, pretty much the same thing happens in both cases. Does Selenium create a temporary profile when starting the browser? Could that be overriding the With absolute path passed through FirefoxOptions:
With using
|
I'll have to defer to the java folks on this one. I've never seen someone pass the profile as a service argument so I'm not sure what's going on. @barancev thoughts? |
I have exactly the same problem using -Dwebdriver.firefox.profile. The profile is no longer given to geckodriver. Works with selenium 3.4 |
After updating to the latest selenium & geckodriver, the profile is now being loaded, but the driver hangs upon browser creation.
|
I'm not sure what's expected behavior in this case, but the issue should be raised on the geckodriver. Selenium passes this CLI option as part of capabilities, but geckodriver changes it to something different. |
my setup:
both gecko logs from 3.4.0 and 3.8.1 show calling firefox using new temporary profile. my local node.sh file
my nodeConfig-linux.json file:
grid console shows the moz:firefoxOptions from the node |
I am following this guide:
Is the guide outdated? |
Whan I pass profile as an argument from my test (instead of
I can see it being used:
But then the test cannot get a connection to Firefox node anymore. Firefox log:
@soosrol it can be we are hitting this bug: |
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
withargs
, 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 -
The text was updated successfully, but these errors were encountered: