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…