CodeWithMMAK

UI Automation Testing Demo Site

A curated list of the best websites for practicing web UI automation testing, featuring various UI elements and scenarios.

CodeWithMMAK
December 26, 2022
1 min

Introduction

🎯 Quick Answer

Practicing UI automation requires high-quality demo sites that simulate real-world scenarios like dynamic loading, complex forms, and asynchronous behavior. Top recommendations include The Internet (HerokuApp) for specific element interactions, DemoQA for comprehensive widget testing, and Swag Labs (SauceDemo) for end-to-end e-commerce workflows. Using these sites allows you to build robust test suites without the risk of breaking production environments.

While learning Web UI testing we are always searching for Demo sites that try to mimic real-world scenarios. Over time, several people in the community have developed these sites with different features and provided good resources and documentation about each usage.

📖 Key Definitions

Demo Site

A website specifically designed for developers and testers to practice automation, scraping, or security testing in a safe environment.

Shadow DOM

A web standard that allows for encapsulation of CSS and HTML, often found in demo sites to test advanced selector strategies.

Dynamic Loading

Content that appears on a page after the initial load, usually via AJAX, used to test "wait" strategies in automation.

E-commerce Workflow

A sequence of steps including login, product selection, cart management, and checkout, ideal for E2E testing.

In this article I will be listing out all the good resources which you can make use of, and if you find I have missed anything then please comment and I will update the list:

🚀 Step-by-Step Implementation

1

Choose Your Scenario

Decide what you want to test (e.g., simple clicks, file uploads, or a full checkout flow).

2

Select a Demo Site

Pick a site from the list below that matches your scenario (e.g., use The Internet for specific UI elements).

3

Inspect Elements

Use Browser DevTools to identify stable locators (IDs, names, or data-attributes) for the elements you want to interact with.

4

Write Your Script

Implement your test using your preferred tool (Playwright, Selenium, Cypress) and handle any dynamic behavior.

5

Verify Results

Run your test and ensure it handles the demo site's challenges (like alerts or frames) correctly.

  1. Automation Book Store: https://automationbookstore.dev/
  2. Automation Test Store: https://automationteststore.com/
  3. DemoBlaze: https://www.demoblaze.com/
  4. DemoQA: https://demoqa.com/
  5. E-commerce Playground: https://ecommerce-playground.lambdatest.io/
  6. ParaBank: https://parabank.parasoft.com/parabank/index.htm
  7. LetCode: https://letcode.in/test
  8. SelectorHub: https://selectorshub.com/xpath-practice-page/
  9. Selenium Playground: https://www.lambdatest.com/selenium-playground/
  10. Selenium Test Pages: https://testpages.herokuapp.com/styled/index.html
  11. Swag Labs: https://www.saucedemo.com/
  12. The Internet: https://the-internet.herokuapp.com/
  13. UI Test Automation Playground: http://uitestingplayground.com/
  14. XYZ Bank: https://www.globalsqa.com/angularJs-protractor/BankingProject/#/login

⚠️ Common Errors & Pitfalls

  • Hardcoded Waits

    Demo sites often have intentional delays. Using sleep() instead of dynamic waits will make your tests slow and brittle.

  • Fragile Selectors

    Avoid using absolute XPaths. Many demo sites have dynamic IDs or structures that change on refresh to challenge your locator strategy.

  • Ignoring iFrames

    Some scenarios (like XYZ Bank) use iFrames. If you don't switch context, your test will fail to find elements.

Best Practices

  • Use Data Attributes (like data-testid) if available, as they are the most stable for automation.
  • Implement Page Object Model (POM) even for simple demo tests to build good habits early.
  • Test for Negative Scenarios (e.g., invalid login) to ensure your error handling is robust.
  • Run your tests in Headless Mode to simulate CI/CD environments.

Frequently Asked Questions

Are these sites free to use?

Yes, all the sites listed are free and open for the community to practice automation.

Can I use these for performance testing?

Generally no. These are shared resources. For performance testing, it's better to host your own instance of an app.

Which site is best for beginners?

Swag Labs is excellent for beginners as it provides a clear, logical flow for an e-commerce application.

Conclusion

Mastering UI automation requires consistent practice on diverse platforms. By utilizing these curated demo sites, you can encounter and overcome the same challenges found in real-world production applications, ultimately becoming a more versatile and effective automation engineer.

📝 Summary & Key Takeaways

This article provided a curated list of 14 high-quality demo sites for practicing web UI automation. We defined key concepts like Shadow DOM and Dynamic Loading, and outlined a structured approach to practicing automation from scenario selection to verification. By highlighting common pitfalls like hardcoded waits and sharing best practices like the Page Object Model, this guide serves as a roadmap for both beginners and experienced testers to sharpen their automation skills in a safe, controlled environment.

Share it with your network and help others learn too!

Follow me on social media for more developer tips, tricks, and tutorials. Let's connect and build something great together!