mirror of
https://github.com/9prodhi/camoufox-rs.git
synced 2026-11-29 16:00:49 +00:00
Selectors used to run only against the top document, so widgets inside iframes (captcha checkboxes, embedded forms) and open shadow roots were unreachable except by raw coordinates (QA finding #10). - `--frame <iframe-selector>` (repeatable for nesting, same- and cross-origin) on text/html/links/click/fill/type/press/hover/select/wait/ evaluate. Each hop resolves the iframe in its parent, maps it to its child frame with Page.describeNode, and evaluates in that frame's tracked execution context. Remote handles are released with their context id. - ` >>> ` pierces open shadow roots in any selector. A CSS-aware tokenizer (quotes, brackets, parentheses, escapes, comments, CSS-only whitespace) leaves plain selectors byte-identical, searches all hosts depth-first, and invalid CSS in any segment fails fast and is named. Closed roots cannot be pierced from the isolated world and say so. - Pointer commands scroll the chain into view first, then measure, so clicks land below the fold and in padded, bordered and scaled iframes. - One command deadline covers every hop and protocol call; `wait` re-resolves the chain each poll, follows replaced iframes, fails fast on permanent errors (open dialog, closed page, bad selector) and always reports the canonical timeout message. - type/press --frame type only into the field currently focused inside the frame and otherwise fail with an actionable error; no focus memory or page instrumentation is installed. - ProtocolErrorKind is now #[non_exhaustive] (pre-1.0 breaking change, listed in CHANGELOG with the new variants and signature changes). Implemented by agy (gemini-3.8-flash-high) and pi (openai/gpt-6.1-sol, five fix rounds); reviewed each round by GPT-6.1-sol, Fable 5.2 and Claude with revert-proven tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YQU84X3UzxGaxqrADxbkoE