Skip to content

Can Automa handle dialog box? #184

Answered by Kholid060
louisfosse asked this question in Q&A
Discussion options

You must be logged in to vote

It's not possible for Automa to auto-click the ok button on the alert window. But instead, you can temporarily disable the alert window so it'll not show up when it's occurred. To do this, you can use the Javascript code block and then write below code

const alertWindow = window.alert;
window.alert = () => {
  window.alert = alertWindow;
}

automaNextBlock();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@louisfosse
Comment options

Answer selected by louisfosse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants