Become a Pro at Web Automation Testing with Playwright and pytest

Become a Pro at Web Automation Testing with Playwright and pytest

Unleash the Power of Playwright and pytest for Web Automation and API Testing

4.4
(16 ratings)
61 enrolled
Course Instructor: Rahul Mula

Course Outcomes

  • Write python scripts to launch browsers and automate tasks performed usually on websites
  • Locate web elements using various methods like element role, inner text, form label or placeholder, CSS selectors, and XPath
  • Perform actions on web elements like hover, click, fill form, select option, upload files, and use keyboard shortcuts
  • Handle events like auto-waiting, custom waiting for an element to load, page navigations, requests, and downloads
  • Log in to websites and authenticate yourself using your account like Google accounts
  • Write a script to automate inbox mail checking for new emails and report the same
  • Use pytest to write and run test cases and define custom pytest fixtures to share test state/data
  • Utilize playwright tools like taking screenshots, recording videos, trace viewer, and auto code generator
  • Apply best practices like web-first assertions, Page Object Models (POM), request interceptions and Parallelism
  • Test API endpoints, define custom API request context, handle API responses, and mock API custom data
  • Deploy automated tests using Github CI
  • Practice Behaviour Driven Development (BDD) with playwright and python behave

Course Structure

148 lectures11h 25m total duration

  Playwright Installation 
4min
  Playwright Website 
1min
  Launch Browser 
6min
  Quiz 
1min
  Click Link 
4min
  Quiz 
1min
  Overview 
2min
  Playwright Navigation 
5min
  Visit Python Docs 
5min

About This Course

Web Automation 🎭

Playwright is a modern, fast and reliable browser 🦾 automation tool from Microsoft that enables testing and automation across all modern browsers including chromium, firefox and webkit.

Automation Testing 🧪

Pytest is a popular Python testing framework that offers a simple and flexible way to write and run tests. In this course, you will learn how to blend Playwright capabilities into the 🐍 Pytest framework with the use of pytest-playwright plugin.

For Beginners 👶

This course is designed for beginners in mind! It's alright if you don't anything about web automation! We will cover all the basics of Playwright and Web Automation Essentials, step by step -

  • Different method to locate web elements like role, text, css selectors, xpath, etc.
  • Perform actions on web elements like clicking, filling forms,
  • Events like Auto-waiting, page navigation, ⬇️ downloads, etc.
  • Authentication with your google account

As a ✨ bonus, we will develop a script to automatically check for 📫 new emails in our inbox and report them back i.e. automated mail checking!

Playwright 🤝 Pytest

After learning web automation, we will start with testing. Again, it's alright if you're new to automation testing or testing at all! You'll go from writing a basic test to deploying automated tests -

  • Basics of testing with pytest
  • Playwright pytest plugin
  • Playwright Tools like trace viewer, codegen, etc.
  • Web-first assertions using expect( )
  • Solve modern testing problems with UI Testing Playground
  • Playwright fixtures, custom setup/teardown using test hooks, , etc.
  • Implement Page Object Model (POM)
  • Handle network events
  • REST API Testing, authentication and API request context
  • Optimizations techniques like Parallelism
  • Deploy automated tests to CI
  • Parameterize tests with predefined test data
  • Behaviour Driven Development with python behave
  • and more...

By the end of the course, you will be able to write automated tests and perform fast, reliable, and capable testing and automation using Playwright and Pytest.

Used by learners at

Microsoft
Amazon
Google

This course is interactive

Interactive courses include hands-on coding exercises to practice as you learn. You practice exercises in a VS Code like IDE without any installation/setup.

Screenshot of codedamn IDE

Student Feedback

4.4
Course Rating

69%

13%

13%

0%

6%

Reviews

Profile picture for Krishnamurthy Vasudevamurthy
Krishnamurthy Vasudevamurthy
Jun 06, 2024
The flow of explanation is good to understand the course. Thank you.
Profile picture for Lavanya Peguda
Lavanya Peguda
Apr 16, 2024
Good
Profile picture for Chetan Parashar
Chetan Parashar
Dec 30, 2023
Very good
Profile picture for MURALI KRISHNA GORLAGUNTA
MURALI KRISHNA GORLAGUNTA
Aug 18, 2024
labs are not working
Profile picture for Victor Ukegbu
Victor Ukegbu
May 29, 2024
Your solution does not show up. The browser that show be running is not responsive.

Course Instructor

Rahul Mula
Python Developer
Rahul Mula
4.6 Instructor rating
86 Ratings
465 Students
3 Courses

Hi, my name is Rahul Mula and I'm a developer specializing in python, flutter, and web development. I've developed Keyviz - the free and open-source tool to visualize your keystrokes in real-time. I'v...View profile

Upgrade to a Pro account and unlock more courses for accelerated learning. Instant feedback, interactive learning and more.

Free

  • 100+ coding courses
  • Certificate of completion
  • Hands-on practice
  • 24x7 doubt solving with AI
  • 100+ projects to practice
  • In-depth project feedback
  • AWS cloud sandboxes

Pro

  • 100+ coding courses
  • Certificate of completion
  • Hands-on practice
  • 24x7 doubt solving with AI
  • 100+ projects to practice
  • In-depth project feedback
  • AWS cloud sandboxes
Upgrade To Pro