Skip to content

Commit 2792a71

Browse files
committed
Update UC Mode docs
1 parent 8315d1f commit 2792a71

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

help_docs/uc_mode.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ from seleniumbase import SB
6060

6161
def open_the_turnstile_page(sb):
6262
sb.driver.uc_open_with_reconnect(
63-
"https://seleniumbase.io/apps/turnstile", reconnect_time=2.5,
63+
"https://seleniumbase.io/apps/turnstile", reconnect_time=3,
6464
)
6565

6666
def click_turnstile_and_verify(sb):
67-
sb.driver.uc_switch_to_frame("iframe")
67+
sb.switch_to_frame("iframe")
6868
sb.driver.uc_click("span.mark")
69-
sb.assert_element("img#captcha-success", timeout=3.33)
69+
sb.assert_element("img#captcha-success", timeout=3)
7070

7171
with SB(uc=True, test=True) as sb:
7272
open_the_turnstile_page(sb)
@@ -99,6 +99,10 @@ driver.uc_open_with_reconnect(url, reconnect_time=None)
9999

100100
driver.reconnect(timeout)
101101

102+
driver.disconnect()
103+
104+
driver.connect()
105+
102106
driver.uc_click(
103107
selector, by="css selector",
104108
timeout=settings.SMALL_TIMEOUT, reconnect_time=None)

0 commit comments

Comments
 (0)