Alert

This method is used to handle the java script alerts.


Syntax :

S.Alert.Accept();It clicks the OK button of the alert.
S.Alert.Dismiss();It clicks the CANCEL button of the alert.
S.Alert.GetText();It reads the text on the alert box.
S.Alert.Enter("data");It enters the data into the alert box.