Expand description
Re-export of frame helpers from runtime-foxdriver.
Preserves the captchaforge::frame import path.
Structs§
- Frame
Tile - A single grid cell located inside the frame tree, with its bounding box
expressed in main-viewport coordinates (the iframe offset is already
summed in).
indexis the element’s 0-based position in the owning frame’squerySelectorAll(selector)result, in document order.
Constants§
- DEFAULT_
FRAME_ RETRY_ INTERVAL - Default poll cadence for the retry helpers. CAPTCHA iframes typically attach within 50–500ms of navigation; 100ms strikes a balance between responsiveness and CDP traffic.
- DEFAULT_
FRAME_ RETRY_ TIMEOUT - Default upper bound for the retry helpers. If a captcha widget hasn’t attached after 8s the page is almost certainly broken or behind a network stall (caller should fall back rather than wait longer).
Functions§
- evaluate_
in_ all_ frames - Evaluate
expressionin every frame of the page (main document + all iframes) and return the deserialized results from every frame that produced a valid value. - evaluate_
in_ frames_ first - Evaluate
expressionin every frame and return the first result that passesfilter. If no frame produces a matching result,defaultis returned. - find_
element_ centre_ in_ frames - Search every frame for a DOM element matching
selectorand return its bounding-box centre coordinates relative to the main viewport. - find_
element_ centre_ in_ frames_ retry - Retrying variant of
find_element_centre_in_frames. - find_
iframe_ rect_ by_ src - Find the bounding rect
(left, top, width, height)of the first iframe whosesrccontainspattern. - find_
tiles_ in_ frames - Locate all elements matching
selectorand return their bounding boxes in main-viewport coordinates, taking the matches from the FIRST frame that contains any. - harvest_
token_ in_ frames - Like
verify_token_in_framesbut returns the populated token VALUE so the chain can hand a realcf-turnstile-response/g-recaptcha-response/h-captcha-responsetoken back to the caller. The chain previously emitted hardcoded label strings ("behavioral:pre-pass", …) which downstream code treated as a success token but couldn’t actually validate against the vendor’ssiteverifyendpoint. - harvest_
token_ in_ frames_ retry - Retrying variant of
harvest_token_in_frames. - verify_
any_ token_ in_ frames - Check whether a CAPTCHA response token exists in any frame. Used for post-solve verification when the provider may inject the token into a hidden input in the main document or inside an iframe.
- verify_
token_ in_ frames