Alert page screenshot | Chrome headless | Selenium | Not working

37 views
Skip to first unread message

Sanjeev Pandey

unread,
Jun 2, 2021, 3:00:47 AM6/2/21
to ChromeDriver Users
Hello,
We are not able to capture screenshot of the page with alert popup in chrome-headless mode for selenium test execution.  For non-headless scenario we are able to capture alert page screenshot using Robot library but that (Robot) workaround is not working for headless node. Any help / suggestion would really be appreciated.

Selenium 3.4.0
Chrome Driver  90.0.4430.24

We even tried chrome dev tool apis ( support available with Selenium 4 beta)  to capture the alert page screenshot but that also not working. 


Regards,
Sanjeev
Reply all
Reply to author
Forward
0 new messages