This short Guide shows you How to Setup Selenium and the Webdriver to Work with the Firefox Browser on Python under macOS.
If your System Dispose of Multiple Python Versions you Should Need Before to Follow Indications Contained in the Troubleshooting Section at the Article Bottom.
-
Open a Terminal Window
-
Install the Python Pip
sudo easy_install pip
-
Install Selenium
sudo pip install Selenium
After you Selenium Installation Should be Correctly Setup and Working.
To Test the Python-Selenium Under macOS Perform on Terminal:
-
Load the Python Console
python
-
Try to Load the Selenium Python Extension
>>>> from selenium import webdriver
>>>> driver = webdriver.Firefox()
If All is Correctly Set-Up after a little while you Should See a Firefox Browser Appearing.
If you Get Some Error Messages look at the Troubleshooting Section here Below.
Troubleshooting
If your Python is Not Completely Setup for Mac Check How to Correctly Setup it Inside this Guide Here Below.