Skip to content

I.fillAlert() ​

Fill the input box on a native prompt() alert.

If no alert is open, the command fails.

Usage ​

js
I.fillAlert(text: string)
ParameterTypeDescription
textstringText to fill into the prompt's text box

Example ​

js
// open an alert with a text box
UI.execute("prompt('What's your name?')")

// fill in the input
I.fillAlert("Jane") 

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

This fills in the input box in the open prompt alert with the text "Jane".