From f9a31a39c5544cbb5d4d290dcec9634fea14cddb Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Fri, 10 Nov 2023 08:54:49 -0500 Subject: [PATCH] Update example tests --- examples/raw_form_turnstile.py | 3 +-- examples/raw_turnstile.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/raw_form_turnstile.py b/examples/raw_form_turnstile.py index d2f639eedb4..84df796ecfa 100644 --- a/examples/raw_form_turnstile.py +++ b/examples/raw_form_turnstile.py @@ -8,9 +8,8 @@ def open_the_form_turnstile_page(sb): def click_turnstile_and_verify(sb): - sb.driver.reconnect(0.1) iframe = sb.driver.find_element("iframe") - sb.driver.reconnect(0.5) + sb.driver.reconnect(0.1) # Another way to reconnect sb.driver.switch_to.frame(iframe) sb.driver.uc_click("span.mark") sb.highlight("img#captcha-success", timeout=3.33) diff --git a/examples/raw_turnstile.py b/examples/raw_turnstile.py index 8411a78e597..15d747e4bc9 100644 --- a/examples/raw_turnstile.py +++ b/examples/raw_turnstile.py @@ -8,9 +8,8 @@ def open_the_turnstile_page(sb): def click_turnstile_and_verify(sb): - sb.driver.reconnect(0.1) iframe = sb.driver.find_element("iframe") - sb.driver.reconnect(0.5) + sb.driver.reconnect(0.1) # Another way to reconnect sb.driver.switch_to.frame(iframe) sb.driver.uc_click("span.mark") sb.assert_element("img#captcha-success", timeout=3.33)