Printscreen in Selenium with popup

2

I'd like to know if it's possible to take a printscreen from the screen with an popup alert, for example Selenium IDE . p>

The captureEntirePageScreenshot function does Printscreen, however, only from the browser and not with the popup together.

Would anyone know how to do this?

    
asked by anonymous 26.02.2014 / 02:27

1 answer

2

Vinicius, If you are talking about a Javascript alert, such as these , you will not be able to take a printscreen because Selenium IDE does not a direct click action on alerts, confirmations, and prompts in Javascript.

In this official Selenium IDE documentation page , we have the following excerpt:

  

When running under Selenium, JavaScript pop-ups will not appear. This is because the function calls are actually overridden at runtime by Selenium's own JavaScript ...

Translating ...

  

When running via Selenium, Javascript popups will not appear. This is because the calling functions are overwritten at runtime by the Selenium Javascript itself ...

Soon, any attempt to make this type of popup appear in a screenshot with Selenium IDE will fail (will not appear).

    
21.05.2014 / 21:51