Playwright · Junior · Question 55 of 75
What happens to a window.alert() dialog by default in Playwright?
- 1The test waits until a person closes it
- 2It's dismissed automatically
- 3The test fails immediately
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.