T E S B O

Tesbo

Switch to Alert and then enter text on alert

First, it will switch to Alert and then enter text in the textbox in the alert.

Syntax:

Step: Switch to alert then enter 'Testing Demo'

e.g

Test: Verify switch to alert then enter text on alert
#All #switch
Step: Open URL 'https://www.seleniumeasy.com/test/javascript-alert-box-demo.html'
Step: Scroll and Click on @ClickForPromptBox
Step: Switch to alert then enter 'Testing Demo'
Step: pause 2 sec
End

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

Powered by BetterDocs

Leave a Comment