CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 00:28:14 GMT
server: Generic Web Server
content-location: CaptureAnEntireWebpage.html.en
vary: negotiate,accept-language
tcn: choice
set-cookie: WR_SID=dc62a8fc.6411375a454aa; path=/; max-age=315360000; domain=.wolfram.com
accept-ranges: bytes
content-type: text/html
content-language: en
content-security-policy: upgrade-insecure-requests
Capture an Entire Webpage—Wolfram Documentation
WORKFLOW
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 "JavascriptExecute" command to automate the scrolling of the webpage to find the true width:
Use the "JavascriptExecute" command to automate the scrolling of the webpage to find the true height:
Use the "SetWindowSize" command to set the current window size to be the actual width and height of the webpage:
- The preceding JavaScript works with both the HTML body margins and the margins of content within the body tag, pushing it downward.
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:
