Skip to content
Independent guides for QA & test automationRSSEditorial policy
QA Vibes

Topic

Tutorial

19 articles tagged “tutorial”.

Playwright "page.goto: net::ERR_ABORTED; maybe frame was detached?": What Aborted the Navigation

Playwright's "page.goto: net::ERR_ABORTED", reproduced nine ways on a one-file local app and run in Chromium, Firefox and WebKit: a 204 response, two navigations at once, a test timeout, a page closed mid-load, route.abort() and a removed iframe. Why a download now says "Download is starting" instead, where the "maybe frame was detached?" suffix comes from, and the fix for each cause.

playwright · automation · tutorial

15 MIN

Cypress "failed because this element is detached from the DOM": The Messages That Replaced It, and the Fixes

"cy.click() failed because this element is detached from the DOM" no longer exists: Cypress 12.0.0 replaced it with two messages about the page updating. We reproduced both in Cypress 16.1.1, on Sauce Demo and on two one-file local pages: chained actions, a wrapped element kept too long, and a button that disappeared while covered. Why the alias the error suggests failed for a button that changed, and why Cypress could click a button replaced every 20 ms.

cypress · automation · tutorial

9 MIN

Element Click Intercepted: "Other element would receive the click" in Selenium, and "intercepts pointer events" in Playwright

One overlay, two tools: Sauce Demo's slide-out menu covers the product images, and clicking one fails in Selenium with ElementClickInterceptedException and in Playwright with a timeout whose call log says "intercepts pointer events". Why elementToBeClickable doesn't help, why closing the menu and clicking at once was flaky in Selenium and not in Playwright, and why force and JavaScript clicks are the wrong fix.

selenium · playwright · automation

12 MIN

Playwright "Element is not attached to the DOM": When Locators Avoid It, and When They Don't

"Element is not attached to the DOM" reproduced on Sauce Demo with element handles, and measured on a local page that replaces its button every 20 to 1,000 ms. Locator clicks never threw it, but timed out when the page re-rendered faster than they could act. locator.screenshot() and scrollIntoViewIfNeeded() threw it even at one re-render a second. What to use instead, measured.

playwright · automation · tutorial

11 MIN

Playwright "Target page, context or browser has been closed": What Closed It, and How to Fix It

Playwright's "Target page, context or browser has been closed", reproduced on a one-file local app: a closed context, a popup that closes itself, a page kept between tests, and a script that closes the browser too early. Why a missing await in Playwright Test shows "Test ended." instead, why an assertion on a closed page says "Received: undefined", and the fixes for each.

playwright · automation · tutorial

12 MIN

Selenium "stale element reference: stale element not found": What Replaced the Element, and How to Fix It

StaleElementReferenceException reproduced on Sauce Demo with Selenium 4.49.0: a Select reused after sorting, and an Add to cart button clicked twice. Why the product names didn't go stale but silently kept the old order, why a catch-and-retry around the same WebElement failed every attempt, what a retry around a fresh lookup actually did, and a Chrome password check that made clicks disappear.

selenium · java · automation

9 MIN

Playwright Strict Mode Violation: Why a Locator Resolved to 2 Elements, and How to Fix It

Playwright's strict mode violation, reproduced four ways on Sauce Demo and this site's practice shop: six identical buttons, two equal prices, a substring match, and a hidden alert added by Next.js. How to read the error, why it fails immediately instead of retrying, how to fix each case, and why .first() is usually the wrong fix.

playwright · automation · tutorial

9 MIN

Playwright Timeout Errors: Which Timeout Fired, and What to Change

Playwright has seven timeouts and they fail with different messages. We triggered each one against a deliberately slow local app: the 5-second expect timeout, the 30-second test timeout and the misleading net::ERR_ABORTED that follows it, actions with no limit of their own, navigation, hooks, the global timeout and the webServer start-up. How to tell from the first line which one fired, and what to change instead of raising every limit.

playwright · automation · tutorial

15 MIN

Sauce Demo Error Messages: What Each One Means and How to Test It

A reference for the error messages on Sauce Demo, the practice shop testers automate first. Each message with its exact text, the input that triggers it, and where it sits on the page, the checkout errors problem_user and error_user cause, the alerts and page errors a test never sees unless it listens, and a Playwright spec with its real output.

playwright · test cases · tutorial

12 MIN

Black-Box Testing Techniques: 4 Examples on One Checkout

Choose between equivalence partitioning, boundary value analysis, decision tables, and state transitions using one checkout. Compare the tests each produces, then try the matching generator or practice questions.

test cases · tutorial · manual testing

9 MIN

Updated

API Test Cases: 34 Positive and Negative Cases, Run Against a Real API

A catalogue of API test cases where every case was sent to a real API. 34 requests to Restful Booker, grouped by endpoint, with what a well-behaved API should return and what this one did, followed by a Playwright spec that checks the contract and records the known defects.

api testing · test cases · playwright

12 MIN

Updated

Page Object Model vs Fixtures in Playwright: One Suite Written Three Ways

Should you use page objects, fixtures, or plain hooks in Playwright? We wrote the same three Sauce Demo tests all three ways, ran them, and measured the differences: how much code each needs, how many places a locator lives, where a failure points when a locator breaks, and what a beforeEach does to a test that doesn't need it.

playwright · automation · tutorial

8 MIN

SQL for Testers: Four Checks That Find the Data Bugs a Screen Hides

A hands-on guide to checking a database the way a tester checks a screen. Load a small shop database with seeded data bugs, write a query that returns the rows breaking each rule, and see why the first version of each query often finds nothing.

sql · test data · tutorial

8 MIN

Test Cases for a Login Page: 22 Cases, Run Against a Real Login

A login page test case list where every case was run. 22 cases against Sauce Demo, grouped by what they protect, with the error text the site actually showed, the cases a practice site can't answer, and a data-driven Playwright spec with its real output.

test cases · playwright · tutorial

11 MIN

Updated

Accessibility Testing with axe and a Keyboard: What Each One Catches

A hands-on introduction to accessibility testing. Scan a page with axe, read a violation properly, see the same bug in the accessibility tree and in your locators, then find out why a keyboard pass misses it entirely. Includes an exercise with an answer key.

accessibility · playwright · automation

9 MIN

Load Testing for Beginners with k6: Smoke, Load, and Finding the Limit

A hands-on introduction to load testing with k6. Start a tiny shop API locally, check it works for one user, prove it meets a response-time goal under steady load, then add users until it doesn't. Includes an exercise with an answer key.

performance testing · k6 · api testing

15 MIN