Skip to content
Target QATargetQA

Playwright JavaScript Login & Authentication Automation Labs

Practice automating web authentication flows: valid credentials, invalid password error assertions, dynamic captcha extraction, 2FA OTP submission, and session state persistence.

Playwright · JavaScript
Challenges
111
Websites
10
Progress
—

Sign in to run, submit and track progress. Guests can browse and read every challenge.

Sign in
Showing 6 of 6 matching · 111 total
  1. Authentication#001ShopZone

    Sign in with a two-step login form

    Sign in to ShopZone through its two-step login (email first, then password) and verify the header greets the signed-in customer.

    • Locators
    • Multi-step forms
    • Explicit waits
    Easy 10m30 pts
    Solve
  2. Authentication#002ShopZone

    Verify the error shown for a wrong password

    Write a negative login test: a known email with the wrong password must stay on the password step and show “Your password is incorrect”.

    • Negative testing
    • Alerts (role=alert)
    • Assertions
    Easy 10m30 pts
    Solve
  3. Authentication#043StayNest

    Log in from the wishlist prompt to save a stay

    Saving a stay requires an account. Click Save on Gion Machiya Townhouse, log in through the dialog that appears, and verify the stay is saved to the wishlist.

    • Login modals
    • Forms
    • State changes
    Easy 10m30 pts
    Solve
  4. Authentication#068FinBank

    Log in through a text captcha

    Log in to FinBank NetBanking with a customer ID, a password and the captcha shown on the page, then verify the dashboard greets the customer.

    • Reading text from the page
    • Login forms
    • Assertions
    Medium 15m50 pts
    Solve
  5. Authentication#069FinBank

    Verify the error for a wrong captcha

    Write a negative login test: valid credentials with a wrong captcha must be rejected with “The captcha you entered is incorrect”, and a new captcha must be shown.

    • Negative testing
    • Alerts (role=alert)
    • Comparing values
    Easy 10m30 pts
    Solve
  6. Authentication#101TaskBoard

    Sign in to the team board

    Sign in to TaskBoard, first with a wrong password to see the error, then with the correct credentials, and verify the “Website Relaunch” board opens for Maya Lin.

    • Login forms
    • Negative testing
    • Explicit waits
    Easy 10m30 pts
    Solve

FAQ

Playwright JavaScript Login & Authentication FAQ

How do I practice Login & Authentication in Playwright with JavaScript?

Choose any challenge below, write your Playwright test script in JavaScript, and execute it against our realistic mock websites. TargetQA tests your code in isolated cloud browsers and checks each acceptance step automatically.

What scenarios are included in the Login & Authentication labs?

Practice automating web authentication flows: valid credentials, invalid password error assertions, dynamic captcha extraction, 2FA OTP submission, and session state persistence.