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:
In[3]:=3

✖
Out[3]=3

Use the "JavascriptExecute" command to automate the scrolling of the webpage to find the true height:
In[4]:=4

✖
Out[4]=4

Use the "SetWindowSize" command to set the current window size to be the actual width and height of the webpage:
In[5]:=5

✖
Out[5]=5

- 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:
In[6]:=6

✖
Out[6]=6

Close the session
Use DeleteObject to terminate the web session process:
In[7]:=7

✖
Export the image
Export the image to a PNG file:
