Issue faced in smart UI testing , getting blank screen , can you help?

We are facing an issue in smart UI visual testing wherein we get a blank screenshot while loading the page.

Hey Dipen Soni,

Taking a screenshot on a blank page looks like the screenshot is taken before the page is completely loaded. To help with this, please use the below command:

// The promise resolves after the load event. await page.waitForLoadState();

This will ensure the page is completely loaded, and then take the screenshot.

Documentation for your reference: Page | Playwright

Hope this information was helpful , feel free to connect with us if in case of any clarification needed.