Closed mrokitka closed 1 year ago
Playwright screenshot of native browser UI elements except for the web content, so you wouldn't see the dialog on the screenshot. Also screenshots are while a modal dialog is open are not supported. You can take screenshot only after the dialog has been handled.
Can this be documented somewhere? I wasn't aware this was not supported.
This should be supported because of DAST tools. I have the same problem with taking screenshot of xss alert for validation point.
System info
Source code
Test file (self-contained) Page Javascript:
Java:
Steps
Expected
Screenshot taken showing the javascript confirmation dialog
Actual
Error stacktrace: