Simple and complete DOM testing playground that encourage good testing practices.
Testing Playground is a browser-based tool for writing and testing DOM element queries against sample or live markup. It renders an interactive form example and lets users query elements using accessible queries such as getByRole, LabelText, PlaceholderText, and Text, modeled on Testing Library conventions.
The tool inspects a given HTML structure and surfaces suggested queries for each element, ranking them by accessibility and specificity, and also lists semantic queries (AltText, Title) and test ID-based queries. It includes a settings option and displays accessible roles for elements on the page.
It is aimed at developers writing automated UI tests, particularly those using Testing Library-style APIs, who want to identify the most accessible and robust selector for a given element before writing test code.
It lets developers query sample HTML elements using Testing Library-style queries like screen.getByRole to practice writing accessible test selectors.
Yes, it supports queries such as getByRole with options like name, matching Testing Library's API.
Yes, it displays the accessible role of a selected element, such as identifying a button's role as 'button'.
Show your product to thousands of developers
ยท 100k monthly pageviews
ยท 7k newsletter subscribers
Become a test automation superstar! ๐.
AI QA agent for comprehensive testing & debugging. Boost productivity, ensure accuracy, and save time with this versatile tool.
Simple and complete testing utilities that encourage good testing practices.
Manual and Automated testing on 5000+ browsers and mobile devices online. Make sure your website and mobile app looks and functions correctly on all devices. Free 14 day trial.
Experience effective test automation of web & mobile apps with an easy & intuitive codeless end-to-end software testing tool, TestingWhiz. Download 30-days free trial.
The most powerful AI testing tool for testing, fixing, and validating your software in one automated flow.