15 challenges · 4 parts

Playwright Interview Practice

For: People who already automate and want sharper fundamentals

Core Playwright topics you should be able to explain and use under pressure: locators you can defend, waiting and events, network and browser control, then debugging a broken test and writing your own assertions.

Try challenge 2, no sign-up
  1. PART 1

    Locators you can defend

    Role, label, text and scoping to the right element.

    1. 02Click a Buttonlocators · getByRole · click
    2. 06Select from a DropdownselectOption · the combobox role · select by text or value
    3. 10Interact with Checkboxesthe checkbox role · check and uncheck · state changes
    4. 11Reveal Hidden Content on Hoverhover · image alt text · hidden content
    5. 15Filter Table Rowsfilter() · tables · scoped locators
  2. PART 2

    Waiting and events

    Auto-waiting, dialogs and listeners set up in time.

    1. 13Wait for Dynamic Contentauto-waiting · no fixed sleeps · delayed content
    2. 14Handle a JavaScript Alertdialog events · listener before action · alerts
  3. PART 3

    Network and browser

    Capture, mock and intercept requests; frames and popups.

    1. 16Capture a Network ResponsewaitForResponse · Promise.all · start waiting before acting
    2. 18Interact Inside an iFrameframeLocator · embedded documents · scoped locators
    3. 20Handle a Popup Windownew pages · waitForEvent · listener before action
    4. 21Mock a GET Requestpage.route · route.fulfill · mock data
    5. 22Intercept a Form POSTrouting by method · route.continue · stubbed responses
    6. 24Inspect Network Payloadrequest bodies · postData · values known only at run time
  4. PART 4

    Write and debug the whole test

    Fix a broken test and write the assertions yourself.

    1. 28Debug the Broken Test (Full Authoring)debugging · full test authoring · writing assertions
    2. 29Accessibility Assertions (Full Authoring)accessible names · roles · writing assertions