T E S B O

Tesbo

Switch to Alert and verify Text on Alert

Syntax:

Step: Switch to alert then verify text with 'I am an alert box!'

e.g.

Test: Verify switch to alert then verify text on alert
#All #switch
Step: Open URL 'https://www.seleniumeasy.com/test/javascript-alert-box-demo.html'
Step: Click on @ClickMe
Step: Switch to alert then verify text with 'I am an alert box!'
Step: pause 2 sec
End

You can find a similar example from Tesbo-Skeleton as well

Powered by BetterDocs

Leave a Comment