Skip to main content

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.

API_General_Alert_01.png

API_General_Alert_02.png

Javascript example

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"));       
}