Closed vipinphogat91 closed 1 year ago
Alert and dialogs in general are not a part of the web content of the page and as such are not captured on the video/screenshots. This is the same as https://github.com/microsoft/playwright/issues/17639
Closing as there are no plans to support it.
System info
In my test case I am clicking on a button which triggers a JavaScript alert. Though I am able to see and interact with the alert during execution but the same is not getting captured in:
Source code
Application URL - https://www.lambdatest.com/selenium-playground/javascript-alert-box-demo
Button XPath - (//button[text()="Click Me"])[1]
Steps for handling alert:
` page.on('dialog', async (alert) => { let alertMsg = alert.message()
await alert.accept() })
await element.click()`