Capture an Entire Webpage
Use WebExecute to screenshot an entire webpage.
Begin the session
Use StartWebSession to begin the session:
- This process can be viewed in your computer’s task manager.
- If no browser is supplied to StartWebSession, it will default to Google Chrome.
Set the window width and height
Open the page you would like to capture:
Use the "SetWindowSize" command to set the current window size to be the actual width and height of the webpage:
Capture the page
Take a screenshot of the entire webpage:
Close the session
Use DeleteObject to terminate the web session process:
Export the image
Export the image to a PNG file: