This post will be quick beginner's tutorial for Selenium using Python binding. First step is to install "python-selenium" and get the required browser driver's. The official link has all the details required to install selenium package for python and links for getting drivers for different browsers. First step is to import the webdriver class from selenium and set the path for the browser driver. from selenium import webdriver CHROME_DRIVER = r "./browser_drivers/chromedriver" SAFARI_DRIVER = r "/usr/bin/safaridriver" In this tutorial, I am using both Chrome and Safari brower. If you are using Mac, you would need additional settings. Run the following command on Mac, if you get the not verified error :- xattr -d com.apple.quarantine ./browser_drivers/chromedriver Next, we will create the driver object to interact with the browser. Ths can be created by calling the appropritate browser class like Chrome, Firefox etc. Note : For Mac, safaridrive