Printscreen on Selenium with popup

Asked

Viewed 188 times

2

I wonder if it’s possible to take one printscreen of the screen with a popup for example in the Selenium IDE.

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

Someone would know how to do that?

1 answer

2

Vinicius, If you’re talking about a Javascript alert, like these, you will not be able to take a printscreen because the Selenium IDE does not do a direct action of clicking Javascript alerts, confirmations and prompts.

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 being overridden at Runtime by Selenium’s Own Javascript...

Translating...

When run via Selenium, Javascript popups will not appear. This is because the call functions are overwritten at runtime by Selenium’s own Javascript...

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.