Skip to content
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

download.prompt_for_download: false does not have effect in images from quay.io/browser/google-chrome-stable #439

Open
O5ten opened this issue Feb 21, 2025 · 4 comments

Comments

@O5ten
Copy link

O5ten commented Feb 21, 2025

Hello!

We're doing a migration to moon (2.7.3) from selenoid and are running into issues in regards to download-prompts. It seems that despite setting download.prompt_for_download-pref in chromeOptions it does not have any effect but renders the dialog below. This was not an issue in selenoid with the exact same setup.

Image

I did some debugging and can see that we're setting the same capabilities as we used to.

"Capabilities":{
   "acceptInsecureCerts":true,
   "browserName":"chrome",
   "goog:chromeOptions":{
      "args":[
         "--password-store=basic",
         "--remote-allow-origins=*",
         "start-maximized",
         "--enable-extensions",
         "no-sandbox",
         "disable-dev-shm-usage",
         "use-fake-ui-for-media-stream",
         "--disable-search-engine-cho...",
         "--lang=en"
      ],
      "excludeSwitches":[
         "enable-automation"
      ],
      "prefs":{
         "credentials_enable_service":false,
         "download.default_directory":"/home/git/...",
         "download.directory_upgrade":true,
         "download.prompt_for_download":false,
         "profile.default_content_setting_values.clipboard":1,
         "profile.password_manager_enabled":false
      }
   },
   "moon":"options":{
      "enableVNC":true,
      "enableVideo":true,
      "name":"TelephonyTests:validatePush...",
      "videoName":"TelephonyTests:validatePush..."
   }
}

I'm not sure whether this worked in older browser-versions but i'm sure it worked when using selenoid.
I've also tried backporting the browserimage version to 128.0 (which we used with selenoid) so it doesn't seem to be the version change. I also tried to run with the selenoid/vnc:chrome_128 but that didn't work at all. :D

Any idea on how to move forward here?

@O5ten O5ten changed the title download.prompt_for_download: false does not have effect in quay.io/browser/google-chrome-stable:133.0.6943.98-6 download.prompt_for_download: false does not have effect in images from quay.io/browser/google-chrome-stable Feb 21, 2025
@aandryashin
Copy link
Member

aandryashin commented Feb 23, 2025 via email

@O5ten
Copy link
Author

O5ten commented Feb 23, 2025

Do not use download.default_directory, files will be stored to default
path /home/user/Downloads where there are permissions to write.

Do you think that is the cause?

@aandryashin
Copy link
Member

aandryashin commented Feb 23, 2025 via email

@O5ten
Copy link
Author

O5ten commented Feb 24, 2025

It seems to work, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants