# Entire page screenshot

**URL:** <https://forum.katalon.com/t/entire-page-screenshot/12319>\
**Category:** Miscellaneous\
**Created:** [July 31, 2018, 11:41am UTC](https://forum.katalon.com/t/entire-page-screenshot/12319 "2018-07-31T11:41:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devanadan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devanadan/32/16104_2.png) [@Devanadan](https://forum.katalon.com/u/Devanadan)\
**Post date:** [July 31, 2018, 11:41am UTC](https://forum.katalon.com/t/entire-page-screenshot/12319/1 "2018-07-31T11:41:55Z")

</div>

Hi : I am trying to take screenshot while I am executing the test case for my scripts. Currently I’m using “TakeScreenshot” function that is default available in Katalon.  
But my recruitment is to capture the entire window including the Windows task bar (with date and time).  
Can anyone help on this by providing the code ?

---

<div class="post-metadata">

**Author:** ![Rudra](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@Rudra](https://forum.katalon.com/u/Rudra)\
**Post date:** [July 31, 2018, 6:08pm UTC](https://forum.katalon.com/t/entire-page-screenshot/12319/2 "2018-07-31T18:08:15Z")

</div>

This can be not be done by Katalon.

To take windows snapshot you can do it by [`java.awt.Robot`](http://java.sun.com/javase/6/docs/api/java/awt/Robot.html#createScreenCapture(java.awt.Rectangle)) to “create an image containing pixels read from the screen.” You can then write that image to a file on

example

```auto
Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());BufferedImage capture = new Robot().createScreenCapture(screenRect);ImageIO.write(capture, "bmp", new File(args[0]));

```

---

<div class="post-metadata">

**Author:** ![Alexander\_L\_B](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Alexander\_L\_B](https://forum.katalon.com/u/Alexander_L_B)\
**Post date:** [November 9, 2018, 7:15am UTC](https://forum.katalon.com/t/entire-page-screenshot/12319/3 "2018-11-09T07:15:19Z")

</div>

You can also import an external javascript library called Ashot and create a custom defined keyword to take the screenshot of the entire page. I have tested it and it worked. Here is the post

> **[how to take a full-page screenshot of mobile & pc](http://forum.katalon.com/discussion/2488/how-to-take-a-full-page-screenshot-of-mobile-pc)**
>
> same as title
