Browse all tutorials →
Practice November 18, 2026 8 min read

Playwright Practice Websites With Ready-to-Run Tests

Free websites for practising Playwright, starting with Rahul Shetty Academy's login, AutomationPractice and GreenKart pages, each with Playwright tests we ran before publishing.

The fastest way to learn Playwright is to write tests against a real page and watch them pass. These practice websites are free, built for automation, and ready to use. Rahul Shetty Academy's practice pages are among the most popular, so we start with them and include Playwright tests we ran on November 18, 2026.

The best Playwright practice websites

SiteWhat to practiseLevel
Rahul Shetty Academy LoginPage PractiseForms, radio buttons, dropdowns, checkboxes, login redirectBeginner
Rahul Shetty Academy AutomationPracticeAlerts, new tabs and windows, web tables, hover, iframes, hide/showBeginner
GreenKart (Rahul Shetty Academy)Search, product lists, cart, checkout flowBeginner–Intermediate
ProtoCommerce (Rahul Shetty Academy)Angular shop, cards, checkoutIntermediate
Event Hub (Rahul Shetty Academy)A full-stack demo app for web and API testsIntermediate
the-internet, SauceDemo, DemoQA, UI Testing PlaygroundEdge cases, a demo shop, widgets, tricky waitsAll levels

Our 10 websites to practise test automation covers the second group and the API practice sites in more detail.

Set up a practice project

terminal
npm init playwright@latest
npx playwright test --headed

Put each exercise below in tests/, then run npx playwright test. All tests use Playwright Test in JavaScript.

Exercise 1: Rahul Shetty Academy login page practice

Page: rahulshettyacademy.com/loginpagePractise/. It shows the demo username and password on the page. The password changes from time to time, so the test reads it from the hint instead of hardcoding it.

tests/login.spec.js
const { test, expect } = require('@playwright/test');

test('wrong password shows an error', async ({ page }) => {
  await page.goto('https://rahulshettyacademy.com/loginpagePractise/');
  await page.locator('#username').fill('rahulshettyacademy');
  await page.locator('#password').fill('wrong-password');
  await page.locator('#terms').check();
  await page.locator('#signInBtn').click();
  await expect(page.locator('.alert-danger')).toContainText('Incorrect');
});

test('valid login reaches the shop', async ({ page }) => {
  await page.goto('https://rahulshettyacademy.com/loginpagePractise/');
  // The demo password changes, so read it from the hint on the page
  const hint = await page.locator('p.text-center').first().innerText();
  const password = hint.match(/Password is (\S+?)\)/)[1];

  await page.locator('#username').fill('rahulshettyacademy');
  await page.locator('#password').fill(password);
  await page.locator('#terms').check();
  await page.locator('#signInBtn').click();
  await expect(page).toHaveURL(/angularpractice\/shop/);
  await expect(page.locator('app-card')).toHaveCount(4);
});

Try next: pick "User" in the radio group and accept the popup, choose "Teacher" from the dropdown, then add a product to the cart in the shop.

Exercise 2: AutomationPractice page

Page: rahulshettyacademy.com/AutomationPractice/. One page with most of the controls interviewers ask about.

tests/automation-practice.spec.js
const { test, expect } = require('@playwright/test');

test.beforeEach(async ({ page }) => {
  await page.goto('https://rahulshettyacademy.com/AutomationPractice/');
});

test('dropdown, checkbox and web table', async ({ page }) => {
  await page.locator('#dropdown-class-example').selectOption('option2');
  await expect(page.locator('#dropdown-class-example')).toHaveValue('option2');

  await page.locator('#checkBoxOption1').check();
  await expect(page.locator('#checkBoxOption1')).toBeChecked();

  const rows = page.locator('table[name="courses"] tr');
  await expect(rows.first()).toContainText('Instructor');
});

test('alert dialog', async ({ page }) => {
  await page.locator('#name').fill('Asim');
  page.once('dialog', async (dialog) => {
    expect(dialog.message()).toContain('Asim');
    await dialog.accept();
  });
  await page.locator('#alertbtn').click();
});

test('link opens a new tab', async ({ page, context }) => {
  const [tab] = await Promise.all([
    context.waitForEvent('page'),
    page.locator('#opentab').click(),
  ]);
  await tab.waitForLoadState();
  await expect(tab).toHaveURL(/qaclickacademy/);
});

Try next: sum the price column of the web table, hover "Mouse Hover" and click "Top", and read text inside the iframe with page.frameLocator('#courses-iframe').

Practice sites teach clicks. A course teaches the system.

Playwright in JavaScript from scratch, Page Object Model, then Claude Code and the MCP Server generating tests for you.

See the course on Udemy →

Exercise 3: GreenKart shopping cart

Page: rahulshettyacademy.com/seleniumPractise/. Products load dynamically, which makes it good practice for Playwright's auto-waiting.

tests/greenkart.spec.js
const { test, expect } = require('@playwright/test');

test('search and add to cart', async ({ page }) => {
  await page.goto('https://rahulshettyacademy.com/seleniumPractise/');
  await page.getByPlaceholder('Search for Vegetables and Fruits').fill('ber');
  await expect(page.locator('.products .product')).toHaveCount(3);

  await page.locator('.products .product').first()
    .getByRole('button', { name: 'ADD TO CART' }).click();
  await expect(page.locator('.cart-info')).toContainText('1');
});

Try next: add two products, open the cart, proceed to checkout and assert the total. Then move the page logic into a Page Object.

A practice path that builds real skill

  1. Week 1: exercises 1–3 above, with locator, getByRole and getByPlaceholder.
  2. Week 2: rewrite them with the Page Object Model and hooks.
  3. Week 3: let Claude and the Playwright MCP Server generate tests for the same pages, then review what it wrote.
  4. Week 4: turn it into a portfolio project on GitHub.

Practice etiquette: these sites are shared and free. Run your suite a few times, not in a loop, and never load-test them.


Frequently Asked Questions

What is the best website to practise Playwright?

Rahul Shetty Academy's practice pages (LoginPage Practise, AutomationPractice and GreenKart) are popular for beginners. the-internet, SauceDemo and DemoQA are also good. All are free and need no account.

What is the Rahul Shetty Academy login page practice password?

The username is rahulshettyacademy and the password is shown on the page itself. It changes from time to time, so read it from the page or from the test, not from an old tutorial.

Can I use Rahul Shetty Academy practice pages with Playwright?

Yes. They are public practice pages built for Selenium and Playwright. The tests on this page were run against them with Playwright Test on November 18, 2026.

Is it free to practise Playwright online?

Yes. Playwright is free and open source, and every practice website listed here is free to use.

How do I practise Playwright as a beginner?

Install Playwright with npm init playwright@latest, write one test per practice page, then refactor them into Page Objects. After that, try generating tests with Claude and the Playwright MCP Server.

Do I need to know JavaScript to practise Playwright?

Basic JavaScript helps: variables, functions, async and await. You can learn it alongside your first tests.

Asim Noaman, Playwright and Claude AI course instructor

Asim Noaman

Sr. SQA Manager & AI Automation Engineer

18+ years in QA. Asim currently runs an 80+ engineer QA function at Tkxel and built a Testing Center of Excellence for a major Saudi bank. He builds AI testing agents with Playwright, Claude AI and the MCP Server at work, and teaches the same workflow in his courses.

18+ Years in QA 80+ engineer QA function
Udemy Instructor 4.5★ · 140+ ratings · 570+ students
Anthropic Certificates Claude API · MCP
Connect on LinkedIn

Full profile →

Playwright + Claude AI Course on Udemy

From Practice Pages to AI-Generated Test Suites.

The course teaches Playwright in JavaScript from scratch (locators, assertions, hooks and the Page Object Model), then Claude Code, the Playwright MCP Server, your own QA AI agent and Playwright Test Agents. 107 lectures, last updated November 2026, rated 4.5★ from 140+ ratings, 570+ students. Lifetime access and Udemy's 30-day refund.

  • Locators, assertions, hooks and Page Object Model in JavaScript
  • Claude Code and the Playwright MCP Server for AI test generation
  • Build your own QA AI agent
  • Lifetime access, 30-day refund on Udemy
See the Course on Udemy →