SeleniumHQ / selenium

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

[🐛 Bug]: Not able to disable chrome prompt through chromeOptions for chrome version 125.0.6422.142 #14098

Closed jain29varun closed 3 weeks ago

jain29varun commented 3 weeks ago

What happened?

tried using below chromeOptions but not working

options.AddUserProfilePreference("download.default_directory", USER_DIR); options.AddUserProfilePreference("download.prompt_for_download", false);

How can we reproduce the issue?

options.AddUserProfilePreference("download.default_directory", USER_DIR);
options.AddUserProfilePreference("download.prompt_for_download", false);

Relevant log output

Save As prompt still display while above chromeOptions already set.

Operating System

Windows 10

Selenium version

specflow

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

chrome version 125.0.6422.142

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

ChromeDriver 125.0.6422.6000

Are you using Selenium Grid?

not using

github-actions[bot] commented 3 weeks ago

@jain29varun, 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!

github-actions[bot] commented 3 weeks ago

Hi, @jain29varun. This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you.

titusfortner commented 3 weeks ago

Look at https://stackoverflow.com/a/77235931/4072371

jain29varun commented 3 weeks ago

Thanks titusfortner for reply - i tried the options given in the https://stackoverflow.com/a/77235931/4072371 but still chrome browser prompts are opening.

diemol commented 3 weeks ago

The reach out to the Chrome team using the links above.

RodrigoZepeda commented 2 weeks ago

This is also happening to me on OSX when using option.add_argument("-incognito"). Doesn't happen when out of incognito mode.

ChromeDriver 126.0.6478.61 Chrome Version 126.0.6478.62 (Official Build) (x86_64) Not using selenium grid. selenium.version 4.21.0

Seems to be the same issue as #13104