Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jul 31, 2024
1 parent ded5045 commit 32a3450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/raw_gui_click.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
UC Mode now has uc_gui_click_cf(), which uses PyAutoGUI.
An incomplete UserAgent is used to force CAPTCHA-solving.
An incomplete UserAgent forces CAPTCHA-solving on macOS.
"""
import sys
from seleniumbase import SB

agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0.0.0"
if "linux" in sys.platform:
if "linux" in sys.platform or "win32" in sys.platform:
agent = None # Use the default UserAgent

with SB(uc=True, test=True, rtf=True, agent=agent) as sb:
Expand Down
4 changes: 2 additions & 2 deletions examples/raw_pyautogui.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
UC Mode now has uc_gui_handle_cf(), which uses PyAutoGUI.
An incomplete UserAgent is used to force CAPTCHA-solving.
An incomplete User-Agent forces CAPTCHA-solving on macOS.
"""
import sys
from seleniumbase import SB

agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0.0.0"
if "linux" in sys.platform:
if "linux" in sys.platform or "win32" in sys.platform:
agent = None # Use the default UserAgent

with SB(uc=True, test=True, rtf=True, agent=agent) as sb:
Expand Down

0 comments on commit 32a3450

Please sign in to comment.