Playwright Python Locators: get_by_role, get_by_label, Filtering and Strictness
Master Playwright Python locators: get_by_role, get_by_label, get_by_text and get_by_test_id, filtering and chaining, strictness errors and shadow DOM.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Master Playwright Python locators: get_by_role, get_by_label, get_by_text and get_by_test_id, filtering and chaining, strictness errors and shadow DOM.
Extend pytest for Playwright: install and disable plugins, add a --env option with pytest_addoption, auto-mark tests, and screenshot failures with a hook.
Configure pytest for Playwright suites: config file precedence, rootdir, addopts, discovery rules, filterwarnings, live logging, required_plugins and env vars.
Control and tag pytest tests with markers: skip, skipif, xfail and strict xfail, custom smoke and regression markers, registering them and running with -m.
Use @pytest.mark.parametrize to run one Playwright test with many inputs: multiple arguments, readable ids, pytest.param, stacking and fixture params.
Learn how conftest.py shares pytest fixtures across folders, how nested conftest files override fixtures, and how to organise conftest for Playwright suites.
Master pytest fixtures for Playwright tests: setup and teardown with yield, function, module and session scope, autouse, factory fixtures and built-ins.
Learn pytest from scratch: how it finds tests, plain assert with detailed failure messages, pytest.raises, pytest.approx, outcomes, exit codes and CLI flags.
Learn Python async/await and asyncio for Playwright: coroutines, asyncio.run, asyncio.gather, the never-awaited warning and running pages concurrently.
Understand Python's with statement and context managers, how Playwright uses them for popups and downloads, and how to write your own with contextlib.
Use Python type hints in Playwright tests: annotate Page and Locator, type test data with dataclasses, and catch mistakes early with mypy.
Manage Playwright Python dependencies like a pro: how venv works, essential pip commands, pinning versions in requirements.txt and fixing common errors.
Take free timed mock tests with answers and explanations.