MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / main

Function main

examples/cdp_mode/raw_multi_captcha.py:8–18  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

6
7
8def main(url):
9 sb = sb_cdp.Chrome(lang="en", incognito=True)
10 sb.goto(url)
11 sb.set_window_rect(randint(4, 680), randint(8, 380), 840, 520)
12 sb.sleep(2.6)
13 sb.gui_click_captcha()
14 sb.sleep(2.2)
15 if not sb.is_element_visible("img#captcha-success"):
16 sb.solve_captcha()
17 sb.sleep(2.2)
18 sb.quit()
19
20
21if __name__ == "__main__":

Callers

nothing calls this directly

Calls 7

quitMethod · 0.95
gui_click_captchaMethod · 0.80
gotoMethod · 0.45
set_window_rectMethod · 0.45
sleepMethod · 0.45
is_element_visibleMethod · 0.45
solve_captchaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…