Skip to main contentSkip to Jobs

How to automate these labs

Quick notes for wiring this lab into Selenium, Playwright, Cypress, Postman, and REST Assured.

Interactive demo

Selenium (Java or Python)

Use explicit waits (ExpectedConditions or WebDriverWait) after actions that trigger navigation. Switch into iframes with switchTo().frame before querying inner elements.

Playwright

Prefer getByRole and getByTestId. Use page.on('dialog') for alerts/confirms. For API steps, use request.newContext() alongside UI tests.

Cypress

Chain cy.get('[data-testid=...]') for stable selectors. Use cy.on('window:alert') stubs for native dialogs in the interactions module.

Postman & OpenAPI

Import the base URL {{baseUrl}}/api/playground/v1. First POST auth/login, copy accessToken, set collection Bearer auth, then call /items and /pets. The machine-readable spec lives at /playground-openapi.json. For Try it out in the browser, use the OpenAPI & Swagger UI lab.

REST Assured

Given baseUri, post login JSON, extract path accessToken, then header Authorization Bearer for follow-up CRUD tests.

These endpoints are mock-only. Do not send real credentials. Data resets when the server restarts or when you POST /api/playground/v1/reset.

Practice ideas

Manual testing

  • Read each tool’s section before scripting

Automation

  • Keep scripts in version control; never store real secrets