screenshot-element
Capture a specific webpage element using a CSS selector. Ideal for visually verifying web applications and monitoring progress with customizable image formats, quality, and padding options.
Instructions
Captures a screenshot of a specific element on a webpage using a CSS selector
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | Image format for the screenshot | png |
padding | No | Padding around the element in pixels | |
quality | No | Quality of the image (0-100), only applicable for jpeg and webp | |
selector | Yes | CSS selector for the element to screenshot | |
url | Yes | The URL of the webpage | |
useDefaultBrowser | No | Whether to use the system's default browser instead of Puppeteer's bundled Chromium | |
useSavedAuth | No | Whether to use saved cookies from previous login | |
visibleBrowser | No | Whether to show the browser window (non-headless mode) | |
waitForSelector | No | Whether to wait for the selector to appear |