T E S B O

Tesbo

Switch to Alert and then Accept

Switch to Alert and then Accept combine two actions together, First, it will switch to Alert and Accept the condition.

Syntax:

Step: Switch to alert then accept

e.g.

Test: Verify switch to alert then accept functionality
#All #switch
Step: Open URL 'https://www.seleniumeasy.com/test/javascript-alert-box-demo.html'
Step: Click on @ClickMe
Step: pause 2 sec
Step: Switch to alert then accept
Step: pause 2 sec
End

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

Powered by BetterDocs

Leave a Comment