pub async fn capture_screenshot(url: &str) -> Result<Vec<u8>>Expand description
Capture a PNG screenshot of a URL
This function launches headless Chrome/Chromium, navigates to the URL, and captures a full-page PNG screenshot.
§Arguments
url- The URL to capture
§Returns
The PNG image data as bytes
§Errors
Returns an error if Chrome/Chromium is unavailable or screenshot capture fails.