We use cookies to ensure that we give you the best experience on our website. By continuing to browse or closing this banner, you acknowledge that you have read and agree to our Privacy Policy and Terms of Service.

Coding Jag - Get The Best News Around Test, DevOps & Automation To Your Inbox, Weekly!

Subscribe Now >
X

Python Tutorial

Overview

Python is the most wanted programming language. Period!

As per the Stack Overflow Developer Survey (2020), Python is the third-most loved programming language, with 66.7% of developers voting for it. Well, even with automation engineers, Python is touted as one of the best scripting languages for Selenium.

If you are looking to get your hands on a complete Selenium Python tutorial, then this is the right place for you. Here we cover everything related to Python - right from Python's fundamentals in Selenium test automation to advanced use cases of test automation for Selenium Python with examples.

So let’s get started!

Why Python Is A Preferred Language For Test Automation?

One of the most difficult choices you have to make is selecting a programming language that has good support for test automation. Look at the top 12 reasons why Python automation testing with Selenium WebDriver is the go-to combination.

See More

7 Best Python Testing Frameworks

Python Behave, a BDD (Behavior Driven Development) framework written in plain language, can help stakeholders easily understand the logic in the test scripts. This Selenium Python tutorial will guide you with performing automation tests with Behave.

See More

How to Set Up Selenium With Python?

This detailed Selenium Python tutorial will cover topics such as the basics of Selenium WebDriver, Selenium WebDriver with Python, Selenium WebDriver vs. Selenium RC, and more.

See More

Selenium and Python Testing Framework Tutorials

In this section, you will learn about different Python testing frameworks and how you can run your Selenium automation tests using those frameworks.

Running First PyUnit Script

To perform Unit Testing, PyUnit has been one of the popular choices for automation engineers. In this article, you will learn more about PyUnit and how to run your first automation script using the PyUnit framework with Selenium.

See More

Parallel Testing In Selenium WebDriver Using Unittest Or PYUnit

This blog covers Selenium WebDriver and Python’s usage with examples. You will learn how to run parallel tests with Selenium with Python and Unittest using Selenium Grid.

See More

Getting Started With Pytest

This article covers the basics of PyTest frameworks and helps you with a list of prerequisites for Python testing with PyTest. It will guide you to get started with Selenium testing and run your first script using Python and PyTest.

See More

Running Python Selenium Test in Parallel With PyTest

Parallel testing helps run tests in parallel on different browser combinations. It helps in improving test coverage. In this Selenium Python tutorial, learn how to run parallel tests with Selenium with Python and Pytest using Selenium Grid.

See More

How To Do Parameterization In Pytest With Selenium?

To verify your code's functionality, a large set of input values are required for thoroughly verifying the test scenarios. Parameterized tests help achieve the same. This blog helps you perform parameterization in Pytest with Selenium.

See More

Page Object Model (POM) In Selenium Python

Page Object Model (POM), a design pattern, reduces the maintenance effort by reducing the duplication of code. This blog takes a closer look at the POM in Selenium that helps create an object repository for storing all the web elements.

See More

Using Selenium and Python Hypothesis

Hypothesis, a Python testing library can be used for creating unit tests that simplifies writing and executing tests. Read this blog for a detailed look at Hypothesis testing in Python and Selenium

See More

Getting Started With BDD In Behave

With Python Behave, a BDD (Behavior Driven Development) framework, different project stakeholders can write automation test scripts in plain simple English. This Selenium Python tutorial will guide you through performing automation tests with Behave.

See More

Robot Framework with Selenium and Python

This Robot framework tutorial will help run your first Selenium testing script with Python. It will also guide you through running automation scripts for more complex scenarios using Robot and Selenium.

See More

Deep diving into advance use cases for Selenium and Python

In this section, you will learn how to run advanced use cases using Selenium with Python

Automated Browser Testing with Opera and Selenium

Opera is still considered a popular web browser in the market, especially in emerging economies. Here, we get into the details on how to perform test automation on Opera with Selenium and Python.

See More

How To Take A Screenshot Using Python & Selenium?

Complete guide to learn about Selenium Python Bindings and different ways of taking screenshots using Selenium’s Python bindings.

See More

How To Drag And Drop In Selenium With Python?

Drag and Drop- one of the most commonly used gestures in the world of GUIs. This blog deep dives into into the implementation of drag and drop in Selenium Python with examples.

See More

Switch Tabs In A Browser Using Selenium Python

Read this blog to understand why you need to switch tabs in Selenium automation. You will also learn how to create new tabs using Selenium Python, and other techniques to switch tabs using Python with examples.

See More

How To Get Page Source In Selenium Using Python?

Retrieving the page source of a website under scrutiny is a day-to-day task for most test automation engineers. Read this blog to learn how to get the page source in Selenium WebDriver using Python.

See More

Handle Dropdowns In Selenium WebDriver

UI/UX designers love dropdown elements, but it’s the automation testing engineers who get to play with it. In this blog, you will learn how to handle dropdowns in Selenium WebDriver when handling access forms or testing websites.

See More

Selenium 4 With Python: All You Need To Know

At the time of writing this, Selenium 4 for Python was in the Beta Stage (i.e. Selenium 4 Beta 1). Here we walk you through the Python Selenium 4 features and how you can use those features in your Python Selenium tests.

See More