Skip to content
Related Articles
Get the best out of our app
Open App

Related Articles

How to Install Selenium WebDriver on MacOS?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

In this article, we will learn how to install Selenium WebDriver in Python on macOS. Selenium WebDriver is a web framework that permits you to execute cross-browser tests. This tool is used for automating web-based application testing to verify that it performs expectedly.

Installation Procedure:

Follow the below steps to install Selenium WebDriver on macOS:

Step 1: Install the latest Python3 in MacOS

Step 2: Download and install the latest Chrome and check your Chrome version fromchrome://settings/help

 Download and install the latest Chrome

Step 3: Download the Chrome WebDriver Zip File matching with your Chrome version and Apple Chip from here and extract the chromedriver.

Download the Chrome WebDriver Zip File

Step 4: Copy the chromedriver and paste it to “/usr/local/bin” (If this folder doesn’t exist then create one)

Step 5: Open a terminal inside the bin folder and run the following command so that MacOS can verify the app.

xattr -d chromedriver

MacOS can verifying the app.

Step 6: Upgrade your pip to avoid errors during installation.

pip3 install --upgrade pip

upgrading pip in macos

Step 7: Install selenium library via pip.

pip3 install selenium

installing selenium in macos using pip

Verifying the Installation:

Run the python code below in your system and it should open up “” in your chrome browser automatically.


from selenium import webdriver
import time
# Main Function
if __name__ == '__main__':
    options = webdriver.ChromeOptions()
    # Provide the path of chromedriver present on your system.
    driver = webdriver.Chrome(executable_path="chromedriver",
    # Send a get request to the url

Browser Output:

Chrome Browser

Terminal Output:


My Personal Notes arrow_drop_up
Last Updated : 21 Sep, 2021
Like Article
Save Article
Similar Reads
Related Tutorials