Test Automation Blog

Tools, Tips and Thoughts for Playwright, Selenium UI and API automated testing

Improve your testing with Playwright soft asserts

Sometimes you don’t want a test to stop immediately an error is found, you want it to carry on performing other related tests. To achieve this in Playwright you can use ‘soft’ assertions. A Typical Scenario: Let’s say you want to verify that a product’s price details are displayed correctly, including the local sales tax. […]

How to find a missing AWAIT in Playwright test code

TL;DR : my AI prompt to find missing ‘await’ clauses I am writing asynchronous test automation code using Playwright and Typescript.Check the test code below for missing “await” clauses:test(‘your Playwright test’, async ({ page }) => { // etc…}); The problem – missing an await One of the most frustrating issues test automation engineers can […]

What are Playwright ‘fixtures’ and how to use them?

Fixtures are a feature of the Playwright test runner that allows you to define commonly used components or values for your test automation needs. Examples of fixture use include database connections and authentication logic. Playwright fixtures automatically manage lifecycle (setup and cleanup) and can be overridden or customized per test or test file. Playwright comes […]

Why you should use GetByRole in Playwright

When writing UI tests with Playwright, selecting the right element is critical for building reliable, readable, and maintainable tests. While there are many ways to locate elements – using CSS selectors, XPath, text content, and so on – Playwright offers a powerful, accessibility-first method: getByRole. This high-level API is part of Playwright’s built-in testing library, […]

Can’t run a Playwright test in VSCode?

Sometimes you create a Playwright test but can’t seem to actually run it in Visual Studio Code. Here are the most common reasons why, and how to fix it. Incorrect File Name Playwright uses certain conventions to identify test files. Depending on the language you’re using, ensure that your test files end with: Playwright Test […]

Scroll to top