

If the driver is not installed properly, an error will occur. For example, if you are using ChromeDriver, type in chromedriver and press Enter. To check if the driver is installed properly, launch a new Command Prompt window and enter the name of the webdriver. Related: The Best Automation Tools to Let Freelancers Reclaim Their Time To install Python on your Mac, download the latest binary package from the official Python download page.Īfter installing Python, launch the terminal and type: pip install seleniumĪlternatively, you can launch pip using the -m flag while invoking Python: python -m pip install selenium Or python -m pip install selenium On macOS Now, to install Selenium WebDriver, open your terminal and enter: pip install selenium All you need to do is download the official Python package using the default package manager of your distribution. The -m flag stands for module name and allows you to pass a module at the time of invoking Python. If the above command throws an error, you can execute the pip command using the -m flag.

Type in the following command to install Selenium: pip install selenium Implement thread.Then, install Selenium WebDriver using Pip, the official Python package manager.Data Science vs Big Data vs Data Analytics.Which methods have you found the easiest or most success with? Which methods didn’t work for you? Please leave a comment below. Download the driver and add its location to your System PATH.If you go this route, you can include additional drivers like GeckoDriver (aka Firefox) as well. Specify it in your Selenium setup code and check it into source control like any other configuration detail.Simply download the combined container, start it and point your code at the right address. Run Chrome & ChromeDriver in a container using Docker.Other package managers like npm have similar commands npm install chromedriver.Confirm it was installed using chromedriver -version and seeing it returns a version.Install ChromeDriver with brew cask install chromedriver.In your terminal window with the Homebrew package manager:.The easiest way to install ChromeDriver is to use your package manager such as brew or npm to install the driver.Listed in order of easiest to hardest install, these are the best ways to install ChromeDriver on a Mac:
