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

Last updated: Dec 18, 2019 18:27


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


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.


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);