Skip to content

Commit de51505

Browse files
committed
Update an example
1 parent 564295f commit de51505

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/raw_cdp_copilot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
sb.sleep(1.1)
1818
sb.click('button[data-testid="submit-button"]')
1919
sb.sleep(2.5)
20-
sb.gui_click_captcha()
21-
sb.sleep(2.5)
22-
sb.gui_click_captcha()
20+
sb.solve_captcha()
2321
sb.sleep(3.5)
22+
sb.solve_captcha()
23+
sb.sleep(2.5)
2424
stop_button = '[data-testid="stop-button"]'
2525
thumbs_up = 'button[data-testid*="-thumbs-up-"]'
2626
sb.wait_for_element_absent(stop_button, timeout=50)
@@ -36,5 +36,5 @@
3636
text = sb.get_text('[data-testid="highlighted-chats"]')
3737
print(text.replace(" ", " ").replace(" . ", ". "))
3838
sb.driver.stop()
39-
except Exception:
40-
print("Something failed!")
39+
except Exception as e:
40+
print(e)

0 commit comments

Comments
 (0)