Handle Alerts

Simulate accepting, dismissing, and closing modal alert dialogs.

CommandExamplesExplanation
accept alert accept alertSimulates clicking the "OK" button on an alert. 
dismiss alertdismiss alertSimulates clicking the "Cancel" button on an alert, if there is one, or closing the dialog window.
close alertclose alertSame as dismiss alert