Python — Selenium All Notes with Projects

HKN MZ
7 min readMay 1, 2021
image source

Selenium is an open-source web-based automation tool to test your web application. We will examine Selenium down to the finest details with some projects.

Setup

Before writing a single line of Python, youe need a Selenium Driver for your favorite web browser. The download links for the drivers are available here: Chrome, Edge, Firefox, and Safari. Follow the link for the browser of your choice and download the driver for the compatible version. We will use the Chromedriver. You can find for chrome compatible version is here chrome://settings/help

You have to install Selenium on a your Python environment. Easiest way using pip or whatever you like. We will use pip install selenium.

pip install selenium

— — — — — — — — — — — — — — — — — — — — — — — — — —

Selenium Basic Notes

In this block, I will try to share most used Python Selenium’s basic code blocks and explanations.

lines[1]: import the webdriver from Selenium…

--

--

HKN MZ
HKN MZ

Written by HKN MZ

I am writing about Sql Server, Elasticsearch and Python. İ am an Database Administrator on SQL Server and Elasticsearch more than 5+ years.

No responses yet