Explore Playwright weekly tips

Curated by top BlinqIO engineers

View all
Category one
Category two
Category three
Category four
Category

Clicking at an Offset Inside an Element

Use Playwright's position option with click() for simple offset clicks within an element, or the Mouse API for precise control beyond its bounding box
Full name
11 Jan 2022
5 min read
Category

Mastering Timeouts in Playwright: Browser, Navigation, and Click Timeouts

Handling timeouts effectively is crucial for stable and reliable test automation with Playwright.
Full name
11 Jan 2022
5 min read
Category

Multi-Domain Testing in Playwright: One Browser vs. Two Browsers

Multi-domain testing is essential when working with applications that involve authentication, cross-domain interactions, or different user roles.
Full name
11 Jan 2022
5 min read
Category

Store and Load Session Cookies to Speed Up Playwright Tests

When running multiple tests in Playwright, logging in repeatedly can slow down test execution. Instead, you can store session cookies after the first login and reuse them in subsequent tests.
Full name
11 Jan 2022
5 min read
Category

Playwright Tip of the Week: Using internal:has-text in Locators

Playwright offers powerful locator strategies to find elements on a page. One such strategy is internal:has-text, which allows for precise text matching using regular expressions.
Full name
11 Jan 2022
5 min read
Category

Using waitForResponse in Playwright for Advanced Synchronization

Playwright’s built-in synchronization mechanisms cover most scenarios, but there are times when you need finer control over network requests. This is where waitForResponse shines.
Full name
11 Jan 2022
5 min read
Category

Mastering Context Clicks in Playwright: Handling Repeated Elements

You may encounter repeated elements such as buttons, links, or icons when testing web applications. These are commonly found in rows of tables or on product cards on shopping websites. A classic example is an “Add to Cart” button on every product card or a “Delete” button on each table row.
Full name
11 Jan 2022
5 min read
Category

Enhance Your Testing with Playwright’s Aria Snapshots

Playwright’s Aria Snapshots offer a powerful method to capture and compare the accessibility tree of your web application. This feature is invaluable for ensuring accessibility compliance and serves as a stable alternative to traditional visual testing methods.
Full name
11 Jan 2022
5 min read
Category

Mastering waitForLoadState in Playwright

In Playwright, ensuring that a page has fully loaded before interacting with its elements is crucial for test reliability. The waitForLoadState method allows you to wait for specific loading states, enhancing the stability of your scripts.
Full name
11 Jan 2022
5 min read
Category

Handling Unexpected Popups with addLocatorHandler in Playwright

Playwright’s addLocatorHandler streamlines test automation by automatically managing unexpected popups like cookie dialogs, ensuring smoother and more reliable workflows.
Full name
11 Jan 2022
5 min read
Category

Enhancing Table Interactions in Playwright Using locator.filter

Playwright’s locator.filter method provides a robust solution by allowing testers to narrow down locators based on specific criteria, such as text content within cells.
Full name
11 Jan 2022
5 min read

Invite the visitor to try your product or service

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.