Skip to content

Commit 32a3450

Browse files
committed
Update examples
1 parent ded5045 commit 32a3450

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/raw_gui_click.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
22
UC Mode now has uc_gui_click_cf(), which uses PyAutoGUI.
3-
An incomplete UserAgent is used to force CAPTCHA-solving.
3+
An incomplete UserAgent forces CAPTCHA-solving on macOS.
44
"""
55
import sys
66
from seleniumbase import SB
77

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

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

examples/raw_pyautogui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
22
UC Mode now has uc_gui_handle_cf(), which uses PyAutoGUI.
3-
An incomplete UserAgent is used to force CAPTCHA-solving.
3+
An incomplete User-Agent forces CAPTCHA-solving on macOS.
44
"""
55
import sys
66
from seleniumbase import SB
77

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

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

0 commit comments

Comments
 (0)