Skip to content

Commit

Permalink
Add a new UC Mode example
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Aug 9, 2023
1 parent 9b882b5 commit 2ccb7b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/raw_uc_mode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""SB Manager using "uc"-mode for evading bot-detection."""
from seleniumbase import SB

with SB(uc=True) as sb:
sb.open("https://nowsecure.nl/#relax")
sb.sleep(2)
if not sb.is_text_visible("OH YEAH, you passed!", "h1"):
sb.get_new_driver(uc=True)
sb.open("https://nowsecure.nl/#relax")
sb.sleep(2)
sb.assert_text("OH YEAH, you passed!", "h1", timeout=3)

0 comments on commit 2ccb7b5

Please sign in to comment.