Page Text: Full Set of Assertions
Assertions allow you to ensure that the web application correctly responds to user actions.
At any moment during the test, you can check if an element is visible and verify its state, content, style, position, and other properties. You can also run custom code on the tested page and confirm its return value.
Automatic Waiting
TestCafe Studio is built for the modern asynchronous web. It properly identifies events like page loading, element rendering, and XHR requests, and waits for them to resolve before it continues to execute the test.
The same logic also applies to assertions, which gives you a reliable way to verify page state. You can even customize timeouts to fine-tune wait times.
Auto-Generated Element Selectors
Test actions and assertions use Selector queries to identify elements by their class, attributes, ID, or other properties. When TestCafe Studio records a test, it generates Selector queries automatically. You can pick a Selector that you like the most from the list of suggestions — or leave it entirely up to TestCafe Studio.
Element Picker and Selector Inspector tools offer assistance when you need to create Element Selectors for assertions and non-recordable actions.