Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Document form control browser script helpers
Magnus Müller23326a7a58c6
diff --git a/RUST_AGENT_INTEGRATION_FEATURES.md b/RUST_AGENT_INTEGRATION_FEATURES.mdindex 391252e8e..8cb14e54d 100644--- a/RUST_AGENT_INTEGRATION_FEATURES.md+++ b/RUST_AGENT_INTEGRATION_FEATURES.md@@ -326,6 +326,11 @@ Terminal core branch: `magnus/browser-use-rust-integration` at latest pulled mai- The helper extracts structured and visible store, hospital, office, directory, and local-business location records with names, addresses, city/state/postal fields, phone numbers, URLs, hours, source/kind labels, keyword scoring, and normalized text.- Proof: `browser_script_location_records_snapshot_normalizes_directory_records`.+64. Browser-script form control helper+ - Terminal browser scripts now expose `form_controls_snapshot(limit=30)` and `toggle_form_control(label_or_text, checked=True, timeout=1.0)`.+ - The helpers surface visible checkbox, radio, and switch controls with labels/state/rects, then set a matched rendered control by label, name, or selector using a real click.+ - Proof: `browser_script_form_control_helpers_toggle_labeled_controls`.+## Current Verification- `python3 -m py_compile browser_use/rust/service.py browser_use/rust/__init__.py browser_use/__init__.py tests/ci/test_rust_agent.py examples/rust_agent/basic.py examples/rust_agent/real_v8_smoke.py`@@ -367,6 +372,7 @@ Terminal core branch: `magnus/browser-use-rust-integration` at latest pulled mai- `CARGO_INCREMENTAL=0 cargo test -q -p browser-use-browser browser_script_result_count_snapshot_parses_visible_count_evidence -- --nocapture`- `CARGO_INCREMENTAL=0 cargo test -q -p browser-use-browser browser_script_contact_details_snapshot_normalizes_candidates -- --nocapture`- `CARGO_INCREMENTAL=0 cargo test -q -p browser-use-browser browser_script_location_records_snapshot_normalizes_directory_records -- --nocapture`+- `CARGO_INCREMENTAL=0 cargo test -q -p browser-use-browser browser_script_form_control_helpers_toggle_labeled_controls -- --nocapture`- Managed-headless end-to-end:- `BROWSER_USE_TERMINAL_BINARY=/home/exedev/Developer/terminal/target/debug/browser-use-terminal BROWSER_USE_RUST_BROWSER_MODE=managed-headless BU_TASK='Open https://example.com and report the page title only.' BU_MAX_STEPS=12 timeout 300 uv run python examples/rust_agent/basic.py`- Output: `Example Domain`