Lesson 1: Introduction to Playwright

Welcome to Playwright (Python)

Playwright for Python provides a synchronous and asynchronous API to suit any project.

Your First Sync Test

python

from playwright.sync_api import sync_playwright

with sync_playwright() as p:

browser = p.chromium.launch()

page = browser.new_page()

page.goto("https://www.careerraah.com")

print(page.title())

browser.close()

    CareerRaah - AI Learning Platform for Professionals