Alert

Alerts the message on the browser, This is a handy Action API used for debugging purposes more like a logging API, it alerts with the message on the browser or can be used to check what is stored in a variable during run time.

Do not leave Alert APIs in actual production scripts because it needs user input to proceed further in the script.

Javascript example

Copy
navigateTo("http://www.apple.com  ");
click(link("ac-gn-link ac-gn-link-iphone"));
        
click(heading4("typography-headline-reduced"));
        
var var1=isVisible(heading4("typography-headline-reduced"));
        
var val2=;
        
alert(var1);
        
if (var1==true){
        
click(link("ac-gn-link ac-gn-link-watch"));
        
}