Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Compatibility Guide for macOS Users with Apple Silicon CPUs #2594

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ Feature: SeleniumBase scenarios for the Simple App
<h2><img src="https://seleniumbase.github.io/img/logo7.png" title="SeleniumBase" width="32" /> Install SeleniumBase:</h2>

**You can install ``seleniumbase`` from [PyPI](https://pypi.org/project/seleniumbase/) or [GitHub](https://github.com/seleniumbase/SeleniumBase):**
<h3>Special Instructions for macOS Users with Apple Silicon (M1/M2) CPUs</h3>
If you're using a macOS machine with an Apple Silicon CPU (such as M1 or M2 chips) and you plan to use SeleniumBase's UC Mode, you might encounter an issue where the browser driver downloaded for UC Mode does not match your CPU architecture. This is because the driver meant for Intel CPUs is downloaded by default, which will not work directly on Apple Silicon CPUs.

To resolve this issue, you need to install Rosetta, which allows applications compiled for Intel processors to run on Apple Silicon.

Run the following command in your terminal to install Rosetta:

🔵 **How to install ``seleniumbase`` from PyPI:**

Expand Down
9 changes: 9 additions & 0 deletions help_docs/uc_mode.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<!-- SeleniumBase Docs -->

## [<img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) UC Mode 👤
### Important Note for macOS Users with Apple Silicon (M1/M2) CPUs

If you're using a macOS machine with an Apple Silicon CPU (such as M1 or M2 chips) and encountering issues with UC Mode saying "bad CPU type", it's because the downloaded chromedriver that SeleniumBase patches is intended for Intel processors. To solve this, you need to install Rosetta, which allows you to run applications compiled for Intel processors on Apple Silicon.

Run the following command in your terminal to install Rosetta:

```bash
softwareupdate --install-rosetta
```

👤 SeleniumBase <b>UC Mode</b> (Undetected-Chromedriver Mode) allows bots to appear human, which lets them evade detection from anti-bot services that try to block them or trigger CAPTCHAs on various websites.

Expand Down