Skip to main content
Loading page…
Python Mastery
Chapter 29
Lesson 2 of 4
Playwright Basics
Contents
Notes
Tutor
Concept
Installation & Setup
Loading activity…
Previous
1 / 10
Continue
Contents
Notes
Discussion
Tutor
40 min
10 activities
0 of 10 done
In this lesson
1
Installation & Setup
2
Hello, Playwright — Your First Script
3
Lab: Run Playwright Against Local HTML
4
Auto-Waiting: Playwright's Superpower
5
Locators — Finding Elements the Right Way
6
Core Actions — Click, Fill, Press, Select
7
Screenshots & Content Extraction
8
Prefer Locators Over Page.$$ Selectors
9
Best Locator Strategy for a Login Button
10
Playwright Script Lifecycle
Objectives
Learner can install Playwright and its browser binaries
Learner can launch a browser, create a page, and navigate to a URL
Learner can locate elements using get_by_role, get_by_text, and CSS selectors
Learner can perform click, fill, press, and type actions
Learner can take screenshots and capture full-page snapshots
Learner can explain Playwright's auto-waiting mechanism
Chapter 29 · Browser Automation with Playwright & Selenium
When You Need a Real Browser
Playwright Basics
Forms, Dynamic Data & Waits
An End-to-End Automation
Previous: When You Need a Real Browser
Next: Forms, Dynamic Data & Waits