Browser Automation
Perform interactive tasks on websites like logging in, filling out forms, or navigating complex flows.
Trigger
The user wants to:
- •Log into a website
- •Fill out and submit a form
- •Click buttons or specific elements
- •Hover, focus, or drag-and-drop elements
- •Perform multi-step navigation while keeping the browser open
Workflow
- •
Initial Navigation: Start with
webscraper gototo open the URL.bashwebscraper goto "https://example.com/login"
- •
Wait for State: Ensure the page is ready with
--wait-fororwait selector.bashwebscraper wait selector "input[name=email]"
- •
Recon: Discover form fields before interacting.
bashwebscraper extract forms
- •
Interactions: Use
interact type-text,click, orinteract fill-form.bashwebscraper interact type-text "input[name=email]" "user@example.com" webscraper interact type-text "input[name=password]" "password123" webscraper click "button[type=submit]"
- •
Verify and Capture: Check the result and optionally take a screenshot.
bashwebscraper extract text ".dashboard" webscraper capture dashboard.png
- •
Proxy/Auth: Use global options for restricted sites.
bashwebscraper --proxy "http://proxy:8080" --user-agent "Mozilla/5.0 ..." goto "URL"
Output
- •Interaction status (stdout)
- •Saved files (if using
captureorrecord)