diff --git a/help_docs/uc_mode.md b/help_docs/uc_mode.md index 54a90c30..09afc044 100644 --- a/help_docs/uc_mode.md +++ b/help_docs/uc_mode.md @@ -60,13 +60,13 @@ from seleniumbase import SB def open_the_turnstile_page(sb): sb.driver.uc_open_with_reconnect( - "https://seleniumbase.io/apps/turnstile", reconnect_time=2.5, + "https://seleniumbase.io/apps/turnstile", reconnect_time=3, ) def click_turnstile_and_verify(sb): - sb.driver.uc_switch_to_frame("iframe") + sb.switch_to_frame("iframe") sb.driver.uc_click("span.mark") - sb.assert_element("img#captcha-success", timeout=3.33) + sb.assert_element("img#captcha-success", timeout=3) with SB(uc=True, test=True) as sb: open_the_turnstile_page(sb) @@ -99,6 +99,10 @@ driver.uc_open_with_reconnect(url, reconnect_time=None) driver.reconnect(timeout) +driver.disconnect() + +driver.connect() + driver.uc_click( selector, by="css selector", timeout=settings.SMALL_TIMEOUT, reconnect_time=None)