DeepSyte

screenshot_element

Capture a screenshot of a specific element on the page by CSS selector.

Parameters

ParameterTypeRequiredDefaultDescription
urlstringYes-The URL to screenshot
selectorstringYes-CSS selector of the element to capture
delaynumberNo0Extra wait after page load before element capture
formatstringNo"png"png, jpeg, or webp

Advanced Capture Controls

Also supports cookieConsent, waitFor, waitUntil, timeoutMs, preScreenshotJs, deviceScaleFactor, and clickBefore. Use waitFor when the target element is rendered by a SPA after client-side data loads.

Example

Screenshot just the pricing table on https://myapp.com using selector ".pricing-section"

Notes

  • Only captures the matched element, not the full page
  • Useful for isolating specific components: hero sections, navbars, cards, forms
  • The selector must match exactly one element on the page

On this page