Playwright

Stimulate network throttling in Playwright (Typescript/JavaScript)

In this previous article, I already show you how easily to stimulate network throttling in Selenium Java for Chrome. It is also very easy to apply for Playwright (Typescript/JavaScript). If you do not know how to create a basic project with Playwright (Typescript), please just refer to Playwright docs first. Full code with comment as …

Stimulate network throttling in Playwright (Typescript/JavaScript) Read More »

How to handle strict mode in Playwright (Typescript/Javascript)

Strict mode in Playwright means locators are strict. Any locator which resolves to more than one element will become invalid and it makes Playwright throw this ugly exception: => This Exception means we have violated strict mode as our locator resolved to 10 elements instead of 1. Strict mode is useful in almost situations but …

How to handle strict mode in Playwright (Typescript/Javascript) Read More »

Data Driven Testing with Playwright (Typescript)

Data-driven testing is a powerful technique that allows you to run the same test code with different sets of data, making your test suite more comprehensive and efficient. In this article, let’s see how to perform data-driven testing using Playwright and Typescript. Please note that I will not focus on setting up Playwright (Typescript) from …

Data Driven Testing with Playwright (Typescript) Read More »

Handle download in Playwright (Typescript)

Download is an important feature of any website. Playwright does support native API for automate test cases related to it. In this article, let’s see how to handle download in Playwright (Javascript/Typescript). Please note that this article will not focus on how to set up a Playwright automation project from beginning. If you do not …

Handle download in Playwright (Typescript) Read More »

Mocking Swipe Action in Playwright (Typescript)

Playwright is an automation tool first released in January 2020 for web/mobile browsers. It supports many modern browsers including Chrome, Firefox, and Safari. It does have friendly API that supports developers to quickly get used to it. Swipe is an action of mobile devices. Recently, Playwright does not support API to stimulate swipe. But we …

Mocking Swipe Action in Playwright (Typescript) Read More »