Learn Playwright with Python (Web & API Automation)

Python Programming, Pytest, Playwright Web (End-To-End) and API Automation Testing

  • 0.0 (0 Reviews)
  • 0 Students
  • 50 Lessons
  • Pavan Kumar

Course Overview

Are you ready to take your test automation skills to the next level?
This course, “Learn Playwright with Python (Web & API Automation) ” is designed to help you become a modern automation engineer by mastering one of the most powerful and future-ready tools — Microsoft Playwright — using Python and Artificial Intelligence.

Playwright is fast, reliable, and built for modern testing challenges. In this hands-on course, you’ll learn how to automate web and API testing using Playwright with Python — from setup to advanced framework development.

Whether you’re a manual tester, a QA engineer, or a developer aspiring to move into automation testing, this course will guide you step-by-step — starting from basics and moving toward advanced, real-world frameworks.


What You Will Learn:

  • How to set up Playwright with Pytest  and python

  • Interact with UI elements using CSS, text, and role-based selectors

  • Automate real-world user flows: clicking, typing, dropdowns, file uploads, alerts, iframes, and more

  • Handle dynamic waits, test assertions, and manage test data

  • Run tests in headless and headed modes, across multiple browsers

  • Configure parallel test execution and retry mechanisms

  • Build reusable test utilities and page objects using fixtures

  • Integrate API testing within your UI automation flows

  • Capture screenshots, record videos, and generate advanced test reports

  • Connect Playwright with Allure, CI tools, and GitHub Actions (optional module)

  • How to use Playwright MCP along with GitHub Copilot.

Who This Course Is For:

  • Manual testers transitioning to automation

  • QA Engineers / SDETs upgrading from Selenium or other tools

  • Developers adding end-to-end tests to their applications

  • Freshers and college students preparing for automation testing roles

No prior automation experience is required. This course starts from the basics and progresses step by step with clear explanations and practical examples.


Free Tools and Technologies Used:

  • Playwright

  • Python

  • PyCharm

  • Git and GitHub

  • Allure Reporting

Course Includes:

  • 100% practical, hands-on content

  • Real-world test automation examples

  • Downloadable codebase and learning resources

  • Interview questions and answers

  • Quizzes and assignments for practice

  • Lifetime access and Udemy Certificate


By the End of This Course, You Will:

  • Build robust Playwright automation frameworks using Python/Pytest

  • Understand the complete test life cycle with real-time use cases

  • Be job-ready to attend automation interviews or work on Playwright projects

  • Gain in-demand web automation skills recognized across the industry

Playwright using Python Detailed Course Contents:


Module 1: Introduction to Playwright

  • What is Automation Testing?

  • Introduction to Playwright

  • Key Features of Playwright

  • Playwright Tools & Ecosystem

  • Playwright vs Selenium

  • Why choose Python with Playwright?

  • Playwright Supported Languages

Module 2: Python Programming Essentials

  • Python Setup

    • Installing Python & PyCharm

  • Python Basics

    • Comments, Keywords, Variables and Data Types

    • Operators (Arithmetic, Logical, Comparison)

    • Conditional Statements (if, elif, else, match-case)

    • Loops (for, while, nested)

    • Strings & Numbers

    • List, Tuple, Set & Dictionary

    • Python Functions

    • Global and Local variables

    • Types of arguments

    • Python OOPS Concepts

    • Class & Object

    • Methods Vs Constructors

    • Static Methods

    • Inheritance & Polymorphism

    • Method Overriding Vs Method Overloading

    • Encapsulation & Abstraction

    • Modules and packages

    • File Handling

    • Exception Handling

Module 3: PyTest

  • PyTest introduction and setup environment

  • Creating Pytest tests

  • Working with the Fixtures

  • Creating re-usable Fixtures

  • Skipping tests

  • Grouping tests

  • Ordering tests

  • Parallel execution

Module 4: Playwright Automation with Python &Pytest

  • Getting Started

    • Installing Playwright

    • Creating Tests

    • Running Tests in headless/headed modes

    • Running tests in parallel mode and multiple browsers

    • CLI commands to run tests with different parameters

    • Understanding Playwright sync vs async APIs


  • Locators

    • Playwright Built-in locators

    • CSS Selectors (tag, ID, class, attributes)

    • XPath

  • UI Interactions

    • Click, Fill, Check, Select

    • Handle radio buttons, checkboxes, and dropdowns

    • Handle dropdowns

  • Working with Elements

    • Get text: inner_text, text_content

    • Count elements

    • Use nth(), all(), first(), last() locators

  • Web Tables

    • Handle static & dynamic tables

    • Extract and validate rows & columns

    • Filtering and pagination

  • Date Pickers

  • Handling iFrames

  • Handling Dialogs

  • Mouse Actions

  • Keyboard Actions

  • File Uploads and Downloads

  • Browser context

  • Handle multiple pages/tabs/popups

  • Shadow DOM Handling

Module 5: Advanced Playwright Features

  • Auto-Waiting & Timeouts

  • Screenshots & Video Capture

  • Tracing with Trace Viewer

  • Debugging Techniques

  • Parameterized Tests using pytest.mark.parametrize

  • Data-Driven Testing with JSON, CSV, Excel

  • Codegen for Generating Tests

  • Playwright Test Reports (HTML, Allure)

Module 6: Framework Design & Development

  • Introduction to Automation Framework

  • Phases of Framework Design

  • Project Setup and Folder Structure

  • Playwright Configuration (playwright.config)

  • Custom conftestDOTpy and Fixtures

  • Page Object Model (POM)

    • Create Page Classes

    • Encapsulate Actions and Selectors

  • Data Files: JSON, CSV & Excel

  • Utility Functions and Data Providers

  • Faker Library for Dynamic Test Data

  • Adding and Tagging Test Cases

  • Generate HTML and Allure Reports

  • Run Tests using pytest.ini

  • Command Line Execution

Module 7: CI/CD & Git Integration

  • Git Basics

    • Git Init, Commit, Push, Branch

    • GitHub Integration

  • CI/CD with GitHub Actions

    • Setup GitHub Workflow for Playwright Tests

    • Environment Setup

    • Trigger tests on push/pull

  • CI/CD with Jenkins

    • Install Jenkins & Plugins

    • Configure Jobs and Pipelines

    • Run Playwright Tests in Jenkins Pipeline

Module 8: API Testing with Playwright + Python

  • REST API Basics

  • Making API Calls with Playwright APIRequestContext

  • GET, POST, PUT, PATCH, DELETE Requests

  • Dynamic Request Body using Faker, JSON files

  • Path & Query Parameters

  • Validating Status Code, Headers, JSON Body

  • Chaining API Requests

  • Authentication Methods

    • Basic Auth

    • Bearer Token

    • API Key

    • OAuth2

Module 9: Playwright Powered by AI (Bonus) 

  • Generative AI & LLMs Overview

  • Prompt Engineering

  • Understanding AI Terms

  • Vibe Coding

  • Auto Healing

  • GitHub Copilot for Python Automation

  • Using Copilot to Generate Playwright Tests

  • Integration of PyCharm IDE +GitHub Copilot+ Playwright MCP

  • Generate and Run Automation tests by using Playwright MCP (Model Context Protocol)


See more

FAQ

FAQ area empty

Course curriculum

8 chương 50 bài học 60 giờ 25 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Python Programming Essentials for Playwright
Chương 3 Pytest testing framework for Python
  • Pytest Introduction, writing Pytest tests & Fixtures 1:24:35
  • Pytest-Exploring Pytest features 1:11:04
Chương 4 Playwright - Web Automation
  • Playwright-Environment Setup & Writing basic tests 1:15:09
  • Playwright built-in locators 1:23:06
  • CSS Locators 1:22:08
  • XPath Locators 1:31:51
  • Playwright Actions - Working with Input box, Radio buttons & Checkboxes 1:14:03
  • Handle Dropdowns - Select Options 1:03:07
  • Handle Bootstrap & Hidden Dropdowns 1:33:36
  • Handle Static Web Tables 53:19
  • Handle Dynamic And Pagination Web Tables 1:06:50
  • Handle jQuery and Bootstrap Date Pickers 1:12:13
  • Handle Dialogs and Frames 1:14:16
  • Mouse Actions 28:12
  • Keyboard Actions, File Upload & downloads 1:05:28
  • Browser Context, Handle Popups & Tabs 1:27:57
  • Capture Videos, Screenshots, Trace viewer & Handle Flaky tests 1:30:30
  • Data Driven Testing (Parameterization ) -Using JSON, CSV & Excel Files 1:32:39
  • Generating Pytest & Allure Reports 1:03:12
  • Page Object Model Design Pattern 1:12:56
Chương 5 Playwright with Pytest Frame work Development ( using Page Object Model)
  • Framework Design & Development - Part 1 1:10:41
  • Framework Design & Development - Part 2 1:20:11
  • Framework Design & Development - Part 3 1:17:34
Chương 6 CI & CD Integrations - Git, GitHub & Jenkins
  • Git & GitHub 1:11:04
  • Integration with Jenkins & GitHub Actions 1:37:34
Chương 7 API Testing with Playwright
  • Introduction to Rest API Testing & Types of HTTP Requests 1:21:54
  • Rest API Testing - CRUD Operations 1:43:09
  • Headers, Cookies & JSON Schema Validations 1:18:16
  • Authentications - Basic, Auth, Token, API Key & OAuth Authentications 1:14:20
Chương 8 AI-Powered Automation using Playwright MCP
  • Handle Shadow DOM & Playwright Locators support in SelectorsHub Plugin 18:14
  • Playwright Codegen (TestRunner) Tool 12:32
  • Playwright MCP with PyCharm IDE + GitHub Copilot 1:31:03

Requirment

  • Basic Testing Concepts

  • Familiarity with Programming Fundamentals

  • Basic Knowledge of Web Technologies

Outcomes

  • Web & API Test Automation using Playwright

  • Python Programming

  • Pytest framework, Fixtures and advanced features

  • Cross-Browser and Parallel Testing

  • Playwright with Pytest Automation Framework

  • Git, GitHub & Jenkins Integration with Pipeline

Instructor

...
Pavan Kumar

0.0

  • ... 0 Student
  • ... 7 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all