Get Screenshot to test evidences

Dears,

Could u help me?
We’ve facing problems to get screenshots for evidencies using the keyword “Waiting for Element State”.

The Web page under testing is unstable to open all elements and we’ve use VPN to connect on client server.

Do you have used other Keywork?

Thanks in advance!

Hi Willian,

Not sure what you asking?

The default setting for Browser library is to take a screen shot when a keyword fails, so if you are using Wait for Element State and it times out because the element doesn’t exist then it should take a screen shot.

See the documentation for Register Keyword To Run On Failure for the default setting.

If you just want to take a screen shot when the page loaded successfully then you can simply use Take Screenshot.

Dave.

Thank you! It worked!

1 Like