I'm trying to validate Screenshots in Headless mode. I use an endpoint with the configuration:
args: ['headless', 'window-size=1920,1080']
When opening the browser without the "headless" argument the window-size is as desired. But If I open the browser headless the screenshots dosen't match anymore. It seems like the headless browser is not using the window-size I configured.
Is there any way to validate the screenshots in headless mode or set the browser size?
Best practices, code snippets for common functionality, examples, and guidelines.
3 posts • Page 1 of 1