Error while taking screenshot

I have setup a take screenshot keyword for my test teardown but i’m getting the error below. I have used many times in other projects but i’m getting this error now.


KEYWORD Browser . Take Screenshot fullPage=True, filename=${screenshot_name}

FAIL Error: page.screenshot: Protocol error (Page.captureScreenshot): Unable to capture screenshot
=========================== logs ===========================
taking page screenshot

Interesting could you enable debug logs from library import and show us the Playwright side logging.