Examples
Screenshot of a particular area with C# and Selenium
Not currently possible
Selenium does not currently support clipping the viewport.
As a workaround, you can take a screenshot of a particular element instead, or crop the image with an image manipulation tool after it has been generated.
We created Urlbox to make converting HTML to images easy
Learn more about our website screenshot API.