Playwright - locator.waitFor() Sumit Kumar Pradhan April 12, 2025 locator.waitFor() in Playwright is used to explicitly wait for an element to appear in the DOM and be ready for interaction (visible, attac... Continue Reading
CSS nth-match and nth-element locator in playwright Sumit Kumar Pradhan April 12, 2025In Playwright, :nth-match() is a selector engine pseudo-class that allows you to select the nth element among a list of elements that match... Continue Reading
Working with Chrome, Firefox and WebKit browser in Playwright Sumit Kumar Pradhan April 12, 2025 Playwright is a powerful Node.js library for browser automation that supports multiple browsers, including Chrome , Firefox , and WebKit .... Continue Reading
Custom expect message in playwright Sumit Kumar Pradhan April 11, 2025 In Playwright, if you want to customize the error message when an expect assertion fails , you can use the message option available in many... Continue Reading
Negating matchers with expect Assertion in playwright Sumit Kumar Pradhan April 11, 2025 In Playwright, you can negate matchers using the .not modifier with the expect assertion API. This is super useful when you want to assert ... Continue Reading
Playwright Hard Assertions vs Soft Assertions Sumit Kumar Pradhan April 11, 2025 You might come across a number of scenarios where a decision needs to be taken regarding what happens if the test fails. If the error (or i... Continue Reading
Playwright Assertion Example Sumit Kumar Pradhan April 10, 2025 Playwright assertions take care of test flakiness and have an inbuilt retry mechanism. It uses the expect library from Jest for test assert... Continue Reading