Playwright + Python · Lesson 13 of 37
Module 13: Introduction to Playwright
Your task
Implement get_browser_engines():
Write it in the editor, then press Check answer (Ctrl + Enter).
Playwright offers both synchronous and asynchronous APIs:
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://targetqa.com")
print("Page Title:", page.title())
browser.close()Welcome to Phase 3! Playwright for Python delivers blazing-fast browser automation over WebSocket connections. In this lesson, we explore Playwright's architecture, cross-engine support for Chromium, Firefox, and WebKit, and compare synchronous vs asynchronous APIs. Let's get started!
Part of the Playwright + Python course (Playwright with Python). Practice this concept live in the Playwright Online Compiler or explore our free automation practice form.
Use sync_api with pytest. It provides standard synchronous test execution without needing async def test functions or pytest-asyncio.
Ready? Solve the task in the editor
Use Check answer to mark it complete. Hints are there if you need them.
___