Skip to content

I.acceptAlert() ​

Accept a native browser alert and closes it.

If no alert is open, the command fails.

Usage ​

js
I.acceptAlert()

Example ​

js
// open an alert
UI.execute("alert('hello world')")

// accept the alert and closes it
I.acceptAlert()

This accepts the alert and closes it.