
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Install and set up python on windows from python.org, run the installer, enable add to path, and verify with where python and python --version (shows 3.1.6).
Install pi test and playwright using pip, then add the pi test playwright plugin to run playwright tests on the pi test framework in PyCharm across Windows and Mac.
Explore Python numeric data types—integers, floats, complex numbers—and string, list, tuple, and dictionary types, and learn list operations such as indexing, slicing, insert, append, update, and delete.
Understand Python data types by comparing tuples and lists—tuples are immutable while lists are mutable, using round versus square brackets—and see dictionaries as key-value pairs with curly braces.
learn to create an empty dictionary at runtime and dynamically add key-value pairs such as first name, last name, and city, then read values.
Demonstrate how to use a Python for loop to iterate over a list, print values, and compute multiples of two and the sum of the first five natural numbers.
Master Python while loops by controlling iteration with conditions, avoiding infinite loops, and using break, continue, and if statements to manage output.
Learn to declare and call Python functions with def, a function name, and a colon, using indentation; pass parameters, print, and return values with greet me and add integers.
Learn how to read and write text files with Python, using open, read, readline, and loops to print lines, while safely closing files to avoid memory leaks.
Learn to print a file line by line with the read line method and a while loop, or use read lines to load all lines into a list for iteration.
Explore pytest fixtures and their role in test setup, sharing reusable pre-work across tests. Learn function and module scopes, linking fixtures to tests for automated Playwright tests.
Discover how pytest fixtures manage scope—from function to session—use conftest for shared setup, and run tests with pytest to observe fixture behavior across files.
Explore core locators in Playwright, using get by label and get by role to identify inputs, selects, and form elements, then fill credentials and choose options.
Understand limitations of get by label: inputs must be inside a label or linked by for and id. Use get by role and CSS selectors for buttons, links, and checkboxes.
Learn to handle child windows in Playwright Python by creating a new page object for the child window and using expect popup inside a closure to interact with it.
Extract the email id from text by splitting on the at keyword and space, stripping spaces, then assert the actual value equals the expected value in a playwright python test.
Explore using the get by placeholder locator in Playwright Python to validate visibility and hidden states, including interacting with a hide button and asserting outcomes.
Explore how to identify frames with frame locator in Playwright, switch to the frame, access its page content, click the all access plan link, and verify happy subscribers text.
Identify the dynamic price column and rice row in a web table, extract the price, and validate that rice costs 37 using a Python Selenium approach.
Learn end-to-end web table handling in playwright by locating the price column with nth-of in a row, validating 37 with expect, and mastering hover mega menus.
Intercept and mock API responses with Playwright to validate UI behavior without changing test data. Learn to simulate no orders by overriding JSON responses and revert to real calls.
Learn to bypass login in Playwright Python tests by injecting the authentication token into browser local storage, enabling direct access to the orders page for faster automated testing.
Adopt best practices to convert code into a maintainable Playwright framework, avoid hard coded data, and load test data from external JSON files using a page object model.
Drive test data from external json files into Playwright fixtures, enabling data-driven web and API tests with credentials in json payloads and parameterization for multiple data sets.
Apply the page object design pattern to organize tests with login and dashboard pages, centralizing actions and locators. Drive data from tests and remove hard coded values for maintainable automation.
Apply a page object design to end-to-end tests in Python, driving login and dashboard flows with reusable page methods, and data-driven credentials via pytest fixtures for a clean test structure.
Optimize tests by avoiding object creation and returning page objects between pages. Implement per-page classes and pass the shared page to enable fluent navigation.
Welcome to the comprehensive Playwright Python course that covers everything from the basics to frameworks, including Python & Pytest fundamentals without need of any prior Python experience.
Combining Playwright with Python unlocks powerful capabilities that can drive innovation in test automation frameworks. Let me walk you through why this combination stands out:
Why Python? Python is not only one of the most versatile programming languages, but it’s also the backbone of Machine Learning (AI) development. Its extensive frameworks for AI integration make it a natural choice for building automation frameworks that leverage AI-driven capabilities.
Why Playwright? Playwright has been growing exponentially boasting a 750% increase in usage every year. Known for its speed, reliability, and ability to automate both UI and API applications, it’s quickly becoming a top competitor to Selenium in the test automation space.
Bringing Playwright and Python together enables you to craft a robust, future-ready test automation framework with AI capabilities of handling even the most complex web and API-based applications.
In this course, you’ll systematically learn:
Python essentials
Playwright automation with Python
Pytest frameworks
Behavior-driven development (Pytest BDD)
Whether you’re just starting out or looking to expand your skillset, this course is designed with no prerequisites—everything is covered step by step to ensure a seamless learning experience.
Imagine the boost this combination can bring to your resume in the evolving test automation era!
I can’t wait to see you in the course and help you unlock new opportunities in your career.
Note : For Beginners, there is 3 hours Python video in the beginning of this course which covers all Python basics from Scratch including coding Assignments and quizzes which prepares candidates for Interviews.
Course Structure Breakdown:
Python/Pytest Basics for Beginners (3 hrs) - Build a solid Python foundation for confident Playwright exploration.
Playwright Web/UI Automation (50%) - Master core Playwright concepts for comprehensive UI automation.
Mixed Web & API Testing with Network Mocking (25%) - Expand your skills by combining UI and API testing with network mocking capabilities.
Playwright Advanced Framework Features (25%) - Dive deep into advanced Playwright frameworks for optimal test design.
In conclusion, this course is a one-stop shop for you to become a Playwright hero and take charge of modern, full end-to-end test automation.
Become a Playwright hero and embrace the future of end-to-end test automation. Enroll today!