Playwright · Junior · Question 55 of 75

What happens to a window.alert() dialog by default in Playwright?

Show the answer

Correct answer: It's dismissed automatically

Explanation

Dialogs are auto-dismissed unless you add a page.on('dialog') handler, which can read the message and accept or dismiss it.

Further reading

Problem with a question

Playwright · Junior · question 55

Test yourself

Take the Playwright · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz