SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.53k stars 8.16k forks source link

[🐛 Bug]: New version 'chrome-4.18.1-20240224-automaticDownloads' is blocking the download of files #13652

Closed victoria-iriusrisk closed 7 months ago

victoria-iriusrisk commented 7 months ago

What happened?

With the latest version chrome-4.18.1-20240224-automaticDownloads, if you try to download a file with a TestCafe test, the chrome browser is blocking the automatic download of files. image

How can we reproduce the issue?

Create a test with TestCafe framework to download a file (i.e. a xml file). Execute test with chrome-4.18.1-20240224-automaticDownloads browser.

Relevant log output

Chrome is blocking the automatic download of files with the following message on 'Downloads' Chrome tab: 'This file can't be downloaded securely'. With the previous version '4.18.0-20240220' the automatic download is working without blocking the download of files. Also, if you try to the following options on capabilities.json file, the download is not working:

 "chrome": {
    "chromeOptions": {
      "args": [
        "--enable-features=EnableManagedDownloads"
      ]
    }

Or

 "chrome": {
    "goog:chromeOptions": {
      "args": ["--disable-web-security"]
    }
  }

Also, if you try to set up secure domains, the browser is always up with this option disable.

Operating System

Ubuntu

Selenium version

Selenium 4.18.0

What are the browser(s) and version(s) where you see this issue?

Chrome

What are the browser driver(s) and version(s) where you see this issue?

node-chrome-4.18.1-20240224-automaticDownloads

Are you using Selenium Grid?

Yes

github-actions[bot] commented 7 months ago

@victoria-iriusrisk, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

diemol commented 7 months ago

We do not publish any image with a -automaticDownloads tag.

If you are looking for managed downloads in Grid, this should help https://www.selenium.dev/documentation/grid/configuration/cli_options/#enabling-managed-downloads-by-the-node.

github-actions[bot] commented 7 months ago

💬 Please ask questions at:

jhernandez-iriusrisk commented 7 months ago

Hi @diemol, Please, take a look at some information below. -automaticDownloads tag is our internal tag, no worries, there are no changes. We tried using your instructions, but we faced the same issue:

image

diemol commented 7 months ago

That is a Chrome feature itself, not something Selenium control. There is probably a flag to disable it. 4.18.1 has Chrome 122, 4.18.0 has Chrome 121.

ccea-dev-team commented 7 months ago

There are a few issues with downloads blocked and password data breach popups in chromedriver v122 causing test failures and it's not clear what prefs need set. https://bugs.chromium.org/p/chromedriver/issues/detail?id=4730&sort=-id https://bugs.chromium.org/p/chromedriver/issues/detail?id=4731&sort=-id

github-actions[bot] commented 6 months ago

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.