selenium-browser_skill

This skill launches a Selenium controlled Chrome, navigates to a URL, captures a screenshot, and reports the result with optional headless and proxy support.
  • Python

2.6k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill selenium-browser

  • _meta.json294 B
  • SKILL.md4.0 KB

Overview

This skill starts a Selenium‑controlled Chrome (or Chromium) browser, opens a URL, takes a screenshot, and reports progress back to the caller. It supports headless mode and an optional proxy, and writes the screenshot file to a predictable location. Errors are captured and forwarded so callers know if something went wrong.

How this skill works

The skill runs a Python script that instantiates ChromeDriver with configurable options (headless, proxy, binary paths). It navigates to the provided URL, waits briefly for the page to load, captures a PNG screenshot, saves the image to disk, and prints a JSON payload with the status and file path. Any exceptions are printed as error text so the orchestrator can relay them.

When to use it

  • Capture a visual snapshot of a web page for monitoring or archiving.
  • Validate that a page renders correctly after a deploy or change.
  • Collect screenshots for visual regression comparison or QA.
  • Automate page capture from environments behind a proxy.
  • Run headless browser tasks in CI or server environments.

Best practices

  • Set CHROME_BIN and CHROMEDRIVER_PATH environment variables if binaries are not in standard locations.
  • Prefer WebDriverWait instead of fixed sleep for reliable page load detection when dealing with dynamic pages.
  • Run in headless mode for CI or headless servers to reduce resource usage.
  • Use a dedicated output directory and unique filenames when taking multiple screenshots to avoid overwrites.
  • Provide a proxy only when required and validate proxy accessibility beforehand.

Example use cases

  • Scheduled job captures homepage screenshots every night for visual regression tracking.
  • On-demand capture of a user's reported page to reproduce a rendering bug.
  • CI step that opens a preview URL and archives a screenshot alongside build artifacts.
  • Capture screenshots of pages that require routing through a corporate proxy for internal testing.

FAQ

Run: selenium-browser <URL> [--headless] [--proxy=<url>]. The script accepts a URL and optional flags for headless and proxy.

Where is the screenshot saved?

By default the script saves screenshot.png under the HOME directory (e.g., /home/main/.../screenshot.png). Adjust the path in the script if you need a different location.

How do I fix timeouts or incomplete page loads?

Replace the static time.sleep(5) with Selenium WebDriverWait and increase the timeout (for example WebDriverWait(driver, 20).until(...)). Ensure network and proxy settings allow the page to load.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
selenium-browser skill by openclaw/skills | VeilStrat