Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

change default download directory and disable download prompt when executing remote thru selenoid #1436

Answered by mdmintz
webmoskal asked this question in Q&A
Discussion options

Trying to override default download location and not get download dialog when downloading a file using selenoid(hub). here is my cap file:
desired_cap = { "browserName": "chrome", "browserVersion": "95.0", "selenoid:options": { "enableVNC": True, "enableVideo": True }, "screenResolution": "1345x1835x24", "prefs": { "download.default_directory": "/home/selenium/Downloads", "download.prompt_for_download": False, "download.directory_upgrade": True, "safebrowsing.enabled": False, "safebrowsing.disable_download_protection": True, } }

You must be logged in to vote

Grid configuration for the downloads folder location via desired capabilities is based on the options available for the specific Selenium Grid that you're using. Also, if the Grid node is not on the same machine as the Grid server, you'll run into the problem that the downloads only exist on the grid node machines where the actual browsers are spun up, as opposed to the grid server where the tests are launched. You might need a separate script to copy over the files after they have been downloaded.

Replies: 1 comment

Comment options

Grid configuration for the downloads folder location via desired capabilities is based on the options available for the specific Selenium Grid that you're using. Also, if the Grid node is not on the same machine as the Grid server, you'll run into the problem that the downloads only exist on the grid node machines where the actual browsers are spun up, as opposed to the grid server where the tests are launched. You might need a separate script to copy over the files after they have been downloaded.

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /