# Error while taking screenshot

**URL:** <https://forum.robotframework.org/t/error-while-taking-screenshot/4536>\
**Category:** Browser\
**Created:** [17 August 2022 23:43 UTC](https://forum.robotframework.org/t/error-while-taking-screenshot/4536 "2022-08-17T23:43:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cccarv82](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/cccarv82/32/1685_2.png) [@cccarv82](https://forum.robotframework.org/u/cccarv82)\
**Post date:** [17 August 2022 23:43 UTC](https://forum.robotframework.org/t/error-while-taking-screenshot/4536/1 "2022-08-17T23:43:28Z")

</div>

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.

Error:

> 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

---

<div class="post-metadata">

**Author:** ![aaltat](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/aaltat/32/15_2.png) [@aaltat](https://forum.robotframework.org/u/aaltat)\
**Post date:** [18 August 2022 18:18 UTC](https://forum.robotframework.org/t/error-while-taking-screenshot/4536/2 "2022-08-18T18:18:54Z")

</div>

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