Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Dec 18, 2019 18:27

Problem

When using Chrome browser additional tabs/windows getting closed/minimized or do not open.

Solution

The reason for such behavior is a Selenium limitation which causes minimization/closing of all the popups/windows other than main browser window when taking a screenshot.

Note

Some default projects in various frameworks can have predefined capabilities for taking automatic screenshots which should be reverted back to default when working with popups/secondary windows:

capabilities.setCapability("takesScreenshot", false);

capabilities.setCapability("screenshotOnError", true);