Form filling, text input, and hotkey pressing are crucial parts of user interface (UI) test automation. In this guide, we will study how to use keyboard events using Playwright. Keyboard.press()...
In Playwright 1.38, a new locator.pressSequentially() method was introduced. On the other hand, it still has the locator.fill() method. Both methods serve one simple goal - to complete text input...
Using screenshots is a crucial part of visual testing in Playwright. When you have a lot of tests and test files in your testing project, keeping your gold screenshots in...
In this brief story, I want to share with you my approach to dynamically tagging Playwright tests. By default, Playwright recommends that you use the — grep and — grep-invert...
Sometimes, you need to deal with sliders in your tests. Playwright does not have any built-in tools to interact with sliders. However, it is not a problem at all. In...
Although Playwright is the web testing tool you use for frontend testing, sometimes your tests need to interact with some APIs, for example, to get test data from the server....
Flaky automation tests can be a bane for QA engineers, introducing uncertainty and undermining the reliability of test suites. Drawing from my experience as an SDET and QA Automation mentor,...
You may need to get the outerHTML of the element in your tests. This seems simple, but Playwright doesn’t have an outerHTML() function. Let’s start with an example. For this...