/
"ALERT" Command
"ALERT" Command
Description: This command is used to accept or cancel a JavaScript popup.
Usage Scenario: Supposed we have a web page that displays a JavaScript popup with OK and Cancel buttons such as the below and we want to click OK/ Cancel on this popup.
Procedure: Define steps that lead up to the point the JavaScript popup appears and add a step with Alert command and select OK/Cancel. Your steps will look like this:
Step that presses OK:
Step that presses Cancel:
Related content
"EXECUTE_SOAP" Command
"EXECUTE_SOAP" Command
Read with this
"VERIFY_SOAP" Command
"VERIFY_SOAP" Command
Read with this
"PRINT_PAGE_SOURCE" Command
"PRINT_PAGE_SOURCE" Command
Read with this
"GET_COOKIE_VALUE" Command
"GET_COOKIE_VALUE" Command
Read with this
"SCROLL_TO_DYNAMIC" Command
"SCROLL_TO_DYNAMIC" Command
Read with this
"HOVER" Command
"HOVER" Command
Read with this