Skip to content

[🐛 Bug]: Unable to handle window management popup while opening a new window #14437

@praveenpappala

Description

@praveenpappala

What happened?

While automating a test case in Java selenium, I am clicking on a button and it will try to open a new window but here chrome popup -'manage windows for all your displays' is appearing as below given screenshot

Screenshot 2024-08-26 144345

How can we reproduce the issue?

To resolve the above issue, I used the below code for the chromeOptions :

Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.default_content_setting_values.notifications", 2);
prefs.put("profile.default_content_setting_values.popups", 0);				
DesiredCapabilities caps = new DesiredCapabilities();
LoggingPreferences logPrefs = new LoggingPreferences();
logPrefs.enable(LogType.BROWSER, Level.ALL);
logPrefs.enable(LogType.PERFORMANCE, Level.ALL);
caps.setCapability("goog:loggingPrefs", logPrefs);
ChromeOptions options = new ChromeOptions();
options.addArguments("--ignore-ssl-errors=yes");
options.addArguments("--ignore-certificate-errors");
// set ExperimentalOption - prefs
options.setExperimentalOption("prefs", prefs);
options.addArguments("use-fake-ui-for-media-stream");
options.addArguments("use-fake-device-for-media-stream=false");
options.addArguments("--remote-allow-origins=*");
options.addArguments("--disable-blink-features=AutomationControlled");



I tried by putting all the values 0,1 and 2 but still 'manage windows for all your displays' chrome popup is appearing.
correct me if I did any mistake.

Relevant log output

Not handling that 'manage windows for all your displays' chrome popup

Operating System

window 10

Selenium version

Selenium 4.19.1

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?

chrome version - 127.0.6533.120

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-questionApplied to questions. Issues should be closed and send the user to community resources.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions