Skip to content

Commit 24f3eed

Browse files
committed
Update a CDP Mode example
1 parent 04d04f0 commit 24f3eed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/cdp_mode/raw_indeed_login.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
"""An example of clicking at custom CAPTCHA coordinates."""
21
from seleniumbase import SB
32

43
with SB(uc=True, test=True, incognito=True) as sb:
54
url = "https://secure.indeed.com/auth"
65
sb.activate_cdp_mode(url)
76
sb.sleep(2.2)
8-
sb.solve_captcha()
9-
sb.sleep(2.5)
7+
if not sb.is_element_visible('input[type="email"]'):
8+
sb.solve_captcha()
9+
sb.sleep(2.5)
1010
sb.type('input[type="email"]', "test@test.com")
1111
sb.sleep(0.5)
1212
sb.solve_captcha()

0 commit comments

Comments
 (0)