Course Highlights
  • Become an expert in Playwright with Python
  • Super intuitive Pytest framework with parallel execution, reporting and CLI commands
  • CI/CD execution with proper password management and Visual Testing
  • Tackling different authentication and other sorts of problems
Curriculum

1 Topic
Important - Please watch! Course content and structure

3 Topics
Install Python
Install PyCharm IDE
Create Project in PyCharm

1 Topic
Course rating and improvement

24 Topics
Project files
First Python program
Working with code comments
Strings Integers and Floats
Simple math operations
Variables
Variable naming conventions
Working with Variables
f-strings
User Input
Data type conversion
Booleans and Comparisons
Conditional Statements
elif statements
Boolean logic
Lists
Tuples
Dictionaries
for loops
while loops
functions
functions with arguments
return from function
function annotations

2 Topics
Intro to classes
class examples

4 Topics
Modules
Packages
Standard Python Library
pip - third-party library

6 Topics
Why Playwright?
Link to Playwright Tutorial GitHub page
Install git
Create a new repo and clone to PyCharm
Install Playwright and beta-browsers
Keep up with Playwright Releases

2 Topics
"playwright : The term 'playwright' is not recognized
Browsers not installing (or re-installing)

7 Topics
Updated - Record and play a first test with Playwright
Playwright Test Generator
Debug and create with pause()
Complete our test with assertion
List of all expect() assertions
Tests are too fast? - Use slow_mo!
Setting timeouts

9 Topics
Notion guide pages
Locators overview
Text locators
Find elements by index
Find by XPath and CSS
Chaining locators
Layout selectors
Layout selectors documentation
Working with similar elements using all() method

9 Topics
page.locator()
Playwright locators guide
Playwright inspector in Browser Dev Tools
Text selectors
CSS selectors
:nth-match and :has-text
XPath selectors
Chaining selectors >>
Playwright selectors summary

2 Topics
expect() vs. assert
Assertions Playwright docs

2 Topics
Wait for selector and page loads
Build a custom wait

5 Topics
Page Object Model
POM documentation
Refactor your old POM files with page.locator()
Project structure
POM helper methods

10 Topics
Intro and install pytest
pytest naming conventions
Run first pytest test with Playwright
Run pytest from PyCharm gutter
Run several tests
Markers - skip
Markers - xfail
Custom markers
Useful pytest CLI commands
pytest CLI commands documentation

3 Topics
Install and run report
Parallel run with pytest
Combine pytest reporting and parallel commands

12 Topics
Intro to fixtures
conftest.py file
Create a set_up fixture
page fixture
headed browsers slowmo and device emulation CLI commands
Capturing screenshots and video recordings
List of all supported devices
--base-url CLI command
Optimize set_up fixtures
Fixture scopes
page fixture vs. browser fixture
Add tear_down step

3 Topics
Marker - parametrize
Data for negative testing
Stack parametrize for easier maintenance and better test data coverage

6 Topics
Set up GitHub Actions
Edit yml file and run tests in CI/CD pipeline
YML file reference link
Use login password via GitHub Secrets
Toggle password between local and remote runs
Store passwords in .env file

5 Topics
Reuse authenticated state with browser context
Reuse authenticated state with storage file
Importance of page.wait_for_load_state
Testing a chat application with multiple users
Browser Authentication

5 Topics
Generating snapshots capturing mismatches browsers support
pytest-playwright-visual repo and documentation
Masking dynamic page elements
Lowering comparison strictness
Full Page snapshot and fail_fast option

  Write a Review

Playwright with Python for Web Automation Testing + Visual

Go to Paid Course