Skip to content

A simple Selenium + Python tutorial with 11 well crafted working examples.

Notifications You must be signed in to change notification settings

qxf2/selenium-beginners

Repository files navigation


Learn Selenium using examples for beginners

Selenium lets you control the browser through a script. Selenium lets you interact with browsers in a manner similar to real users interacting with browsers. We present small code samples that help you learn selenium from scratch using Python. These are example code for some of the most commonly performed actions on a webpage like navigating to a URL, fill in the text, click buttons, hover over elements, choose drop downs, validate text, etc.


Motivation for creating this repository

We noticed that many people who plan on learning selenium think it would take a lot of effort and time and hence would never start learning it. This small collection of 11 wellcrafted working examples would help you to learn Selenium quickly. Working through this example you will notice how easy it is to get started and perform various actions on a webpage.

This code is a companion to a Selenium tutorial (aimed at newbies) we presented as part of the Mangaluru Software Testing Group. This page was created by Qxf2 Services (http://qxf2.com) and Mangalore Infotech (http://mangaloreinfotech.in/) to help testers practice Selenium.

Qxf2 provides QA consultancy services for startups. If you found this repository useful, please let us know by giving us a star on GitHub.

####UPDATE:

This repo has been updated on 14-Sep-2022 to account for some changes in Selenium 4.3.2 that were not backward incompatible. We also took this chance to update the scripts to use Python 3.x


Setup:

a. Install Python 3.x

b. If you do not have it already, get pip

c. Add both to your PATH environment variable

d. Install the latest Selenium (pip install Selenium)

e. Download Geckodriver (https://github.com/mozilla/geckodriver/releases) and add it to your PATH environment variable

f. Download Chromedriver (https://sites.google.com/chromium.org/driver/) and add it to your PATH environment variable

g. Open command prompt, navigate to the folder you have downloaded the repo and run the example code using command eg: python 01_Navigate_Url.py

Pro tip: Once you are setup, try your best to timebox each exercise to no more than 10-minutes. We recommend this tip for even rank beginners who know nearly nothing about Selenium and Python!


DISCLAIMER:

This code is aimed at Selenium BEGINNERS. For more advanced tutorials and to learn how Qxf2 writes GUI automation, please visit our:

a) Our GUI automation guides: http://qxf2.com/gui-automation-diy

b) Other GitHub repos: https://github.com/qxf2


AUTHORS:

Avinash Shetty ([email protected])

Arunkumar Muralidharan ([email protected])

About

A simple Selenium + Python tutorial with 11 well crafted working examples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages