From 32a3450ed82817d3bf0fe0654ebb22fcc50c578d Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Wed, 31 Jul 2024 14:39:43 -0400 Subject: [PATCH] Update examples --- examples/raw_gui_click.py | 4 ++-- examples/raw_pyautogui.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/raw_gui_click.py b/examples/raw_gui_click.py index 9c16633e676..f4dabb05d80 100644 --- a/examples/raw_gui_click.py +++ b/examples/raw_gui_click.py @@ -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: diff --git a/examples/raw_pyautogui.py b/examples/raw_pyautogui.py index 4318c2446a4..75616d2a769 100644 --- a/examples/raw_pyautogui.py +++ b/examples/raw_pyautogui.py @@ -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: