Appearance
Accept a native browser alert and closes it.
If no alert is open, the command fails.
I.acceptAlert()
// open an alert UI.execute("alert('hello world')") // accept the alert and closes it I.acceptAlert()
This accepts the alert and closes it.