Skip to content

Commit b95e582

Browse files
committedMar 8, 2024
Add example script for bypassing the Bing CAPTCHA
1 parent e7da760 commit b95e582

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎examples/raw_bing_captcha.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from seleniumbase import SB
2+
3+
4+
with SB(uc=True, test=True) as sb:
5+
url = "https://www.bing.com/turing/captcha/challenge"
6+
sb.driver.uc_open_with_tab(url)
7+
sb.add_css_style("iframe{zoom: 2}") # Make it bigger
8+
sb.switch_to_frame("iframe")
9+
sb.activate_demo_mode() # See asserts as they happen
10+
sb.assert_element("svg#success-icon")
11+
sb.assert_text("Success!", "span#success-text")
12+
sb.highlight("div#success", loops=8)
13+
sb.sleep(1)

0 commit comments

Comments
 (0)