Capturing the Contents of a Web Page

To capture a screenshot of the the part of the web page that is currently visible in the browser window, you can use the captureBitmap method. You have to specify the absolute or relative file path to the location and the name for the image file as a parameter. For example:
browserWindow.captureBitmap("C:\Temp\MyPage.png");
To capture a screenshot of the entire contents of a web page as a single image, you can use the captureFullPageBitmap method. You have to specify the absolute or relative file path to the location and the name for the image file as a parameter. For example:
browserWindow.captureFullPageBitmap("C:\Temp\MyPage.png");