Test Automation Blog

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

Playwright

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, […]

Handling new browser tabs in Playwright

Sometimes performing an action opens up a web page in a new browser tab, so how can we handle this in Playwright? TL;DR: with a new Page object. You can see an example of a new browser tab being opened on the Playwright GitHub page in the link to the Playwright developer community website. You […]

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 […]

Fixing the “is not digitally signed” error in VSCode

Are you getting an error when trying to execute commands in the Visual Studio Code terminal window, with the error message containing the text “{executable file} is not digitally signed”? For example when running “yarn dev” I get this error message: Here’s the actual screenshot: One way to fix this is to run this code […]

Scroll to top