pub async fn verify_any_token_in_frames(page: &Page) -> Result<bool, Error>Expand description
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.
§Example
use runtime_foxdriver::frame::verify_token_in_frames;
let found = verify_token_in_frames(page, "g-recaptcha-response").await?;
assert!(found);Search every frame for a populated captcha token field of any
well-known shape (cf-turnstile-response, g-recaptcha-response,
h-captcha-response, frc-captcha-solution, altcha,
mcaptcha__token, cap_token, captchaToken).
Returns Ok(true) as soon as one frame reports a non-empty
el.value for any of those fields. Useful as a “did anything
pass?” check after a passive WAF challenge, saves the caller
from running verify_token_in_frames once per vendor name.