Python Modules, Packages and Imports for Playwright Test Projects
Organise Playwright Python tests with modules and packages: import styles, __init__.py, project layout, and fixing ModuleNotFoundError in pytest.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Organise Playwright Python tests with modules and packages: import styles, __init__.py, project layout, and fixing ModuleNotFoundError in pytest.
Record pytest tests with Playwright Codegen for Python: the python-pytest target, picking locators, adding assertions and cleaning up recordings.
Configure Playwright Python tests: addopts and base_url in pytest.ini or pyproject.toml, and browser_context_args and timeouts in conftest.py.
pytest-playwright CLI options explained: browsers, headed mode, slow motion, devices, screenshots, videos, traces, base URL and pytest flags.
Write your first Playwright pytest test: the page fixture, expect assertions, a login test, negative tests, discovery rules and reading failures.
Your first Playwright Python script with sync_playwright: browser, context and page, filling a form, reading text, screenshots and clean shutdown.
Set up Playwright with Python step by step: virtual environment, pip install pytest-playwright, playwright install browsers and VS Code.
What Playwright for Python is, how it drives Chromium, Firefox and WebKit, sync vs async API, and why testers pair it with pytest-playwright.
30 TypeScript OOP programs with solutions: encapsulation, inheritance, polymorphism, abstraction, SOLID and design patterns used in test automation.
30 TypeScript generics programs with solutions: generic functions, classes and interfaces, constraints, keyof, conditional and mapped types for QA code.
30 TypeScript class programs with solutions: access modifiers, getters, setters, static members, abstract classes, inheritance and page object classes.
30 TypeScript interface programs with solutions: extends, implements, generic interfaces, type guards, discriminated unions and page object contracts.
Take free timed mock tests with answers and explanations.