Skip to content

Commit

Permalink
Add example script for bypassing the Bing CAPTCHA
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Mar 8, 2024
1 parent e7da760 commit b95e582
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/raw_bing_captcha.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from seleniumbase import SB


with SB(uc=True, test=True) as sb:
url = "https://www.bing.com/turing/captcha/challenge"
sb.driver.uc_open_with_tab(url)
sb.add_css_style("iframe{zoom: 2}") # Make it bigger
sb.switch_to_frame("iframe")
sb.activate_demo_mode() # See asserts as they happen
sb.assert_element("svg#success-icon")
sb.assert_text("Success!", "span#success-text")
sb.highlight("div#success", loops=8)
sb.sleep(1)

0 comments on commit b95e582

Please sign in to comment.