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
Capabilities' default_directory ignored in Chrome #5292
Comments
+1 I have the same issue. |
Digging into this more, looks like in a selenium grid setup chromeOptions are not being matched with goog:chromeOptions. Below is the chromedriver logs from a failure:
Tweaking @seangerhardt-wf capabilities to the below settings will get things working:
Not sure if this was an intended deviation with Selenium v3.8.0/3.8.1 or not but thought I would post my findings here. |
SeleniumHQ/selenium#5292 git-svn-id: http://svn.redmine.org/redmine/trunk@18530 e93f8b46-1217-0410-a6f0-8f06a7374b81
SeleniumHQ/selenium#5292 git-svn-id: http://svn.redmine.org/redmine/trunk@18531 e93f8b46-1217-0410-a6f0-8f06a7374b81
Another important note is to set the absolute path to the directory (I tried relative path and it was ignored), I got the idea form here |
Me and my colleague got around the relative path problem by converting a relative path into a absolute one. |
I got this working by setting the absolute path with a trailing \ at the end. It stops working and defaults to the default dir when going to --headless though. :/ |
The problem was the lack of |
Meta
OS: Linux
Selenium Version: 3.8.1
Browser: Chrome
Browser Version: stable 62.0.3202.94
Expected Behavior
Downloads go to specified directory in capabilities' chrome prefs, which worked fine in Selenium v3.7.1 with Chromedriver: 2.33.506092
Actual Behavior
Downloads are going to
file:///home/seluser/Downloads/
, ignoring the capabilities' directory providedSteps to reproduce
Use Selenium Version: 3.8.1
Use dart webdriver with following capabilities, and trigger a download in chrome
The version of Dart: Dart VM version: 1.24.2 (Thu Jun 22 15:42:21 2017) on "linux_x64"
The operating system: linux_x64
The version of the dart webdriver package: 1.2.3
The version of chromedriver: Chromedriver: 2.33.506092
The text was updated successfully, but these errors were encountered: