Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Playwright Python - How to Use Pytest

Automation Step by Step via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to integrate Playwright with Pytest for Python test automation in this 18-minute tutorial. Discover the key differences between the core Playwright library and the pytest-playwright plugin, understanding when and why to use each approach. Explore whether you can install pytest-playwright after already having Playwright installed, and see how the pytest integration provides additional testing framework benefits. Follow along with a hands-on demonstration that covers the complete setup process, including installing the pytest-playwright plugin, downloading browser binaries, and creating your first test file. Master the built-in fixtures like page, browser, and context that eliminate the need for manual browser setup and teardown. Understand how pytest-playwright automatically handles browser lifecycle management while providing powerful CLI options for controlling headless/headed mode, browser selection, and output paths. Discover advanced features including automatic trace capture, video recording, and screenshot generation on test failures. Practice writing test cases using pytest structure and learn to leverage the seamless integration between Playwright's browser automation capabilities and pytest's testing framework features.

Syllabus

Playwright Python 2 | How to use Pytest

Taught by

Automation Step by Step

Reviews

Start your review of Playwright Python - How to Use Pytest

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.