Glossary

Web Scraping & API Glossary

Comprehensive glossary of web scraping, crawling, and API terms. Learn the essential concepts and terminology used in web data extraction.

How to fix "Execution context was destroyed, most likely because of a navigation"?

Playwright

This happens when evaluation starts on one document and the page navigates before it finishes. Coordinate the click and ...

How to fix "Frame was detached" errors in Playwright?

Playwright

Frame was detached means the iframe was removed or reloaded while you were using it. Re-acquire the frame right before a...

How to fix net::ERR_ABORTED during page.goto in Playwright?

Playwright

net::ERR_ABORTED often appears when navigation is interrupted by another navigation, redirect, or page close. Avoid over...

How to fix net::ERR_CONNECTION_REFUSED in Playwright navigation?

Playwright

net::ERRCONNECTIONREFUSED means nothing is listening on the target host/port. Start the web server before tests and veri...

How to fix net::ERR_INTERNET_DISCONNECTED or net::ERR_FAILED in Playwright?

Playwright

These errors indicate network failure (offline state, blocked DNS, proxy/VPN issues, or request blocking). Stabilize tes...

How to fix net::ERR_INVALID_AUTH_CREDENTIALS in Playwright?

Playwright

This means HTTP auth credentials are missing or incorrect. Set valid httpCredentials when creating the browser context. ...

How to fix Playwright APIRequestContext cookie mismatch between API and UI tests?

Playwright

API requests and browser pages may run in separate contexts, so auth cookies do not automatically sync. Share auth via s...

How to fix Playwright auth state issues when login passes but tests start logged out?

Playwright

This usually means storageState was saved in one context but not loaded in the project that runs your tests. Create auth...

How to fix common Playwright test mistake: `Cannot read properties of undefined`?

Playwright

This is a test code bug, usually from missing fixture args or wrong variable scope. Always destructure fixtures in the t...

How to fix Playwright "locator.click: Timeout ... element is not visible"?

Playwright

The locator exists but is hidden, covered, or outside expected UI state. Wait for visibility and stable state before cli...

How to fix Playwright Test error: "did not expect test() to be called here"?

Playwright

This occurs when test() is invoked outside a test file context, often in config/helpers imported by config. Keep test() ...

How to fix Playwright download tests that hang waiting for files?

Playwright

Downloads hang when listeners are attached after the click or when the app opens downloads in a new flow. Register waitF...

How to fix Playwright "Element is not attached to the DOM"?

Playwright

The element was re-rendered between lookup and action, so the handle became stale. Prefer locators (auto-retry) instead ...

How to fix Playwright `net::ERR_NAME_NOT_RESOLVED` in `page.goto`?

Playwright

ERRNAMENOT_RESOLVED means DNS lookup failed for the URL host. Verify baseURL, environment variables, and network access ...

How to fix Playwright "Executable doesn't exist" after install?

Playwright

Playwright package is installed, but browser binaries are missing in the environment. Install browsers (and system deps ...

How to fix Playwright "Execution context was destroyed" errors?

Playwright

This happens when the page navigates or reloads while your script is still evaluating in the old document. Wait for navi...

How to fix Playwright file upload failures with `setInputFiles`?

Playwright

Upload failures usually come from wrong file paths or hidden/non-file inputs. Target a real <input type="file"> and pass...

How to fix Playwright geolocation/permissions not applying in tests?

Playwright

Location APIs fail when permission is not granted for the right origin or context. Set geolocation and permissions at co...

How to fix Playwright mobile emulation issues when desktop layout still appears?

Playwright

Mobile layout can fail when viewport/device settings are overridden later in config or test. Use one clear project devic...

How to fix Playwright "No frame for selector" and iframe locator issues?

Playwright

Elements inside iframes are not reachable from top-level page.locator(...). Use frameLocator() and wait for iframe conte...

How to fix flaky Playwright popup/new-tab tests (`page.waitForEvent('popup')`)?

Playwright

Popup tests fail when code listens for the new page too late. Create the popup wait promise first, then click the opener...

How to fix Playwright "Protocol error (...): invalid argument"?

Playwright

A protocol invalid-argument error means a browser command received unsupported or malformed input. Validate option shape...

How to fix flaky Playwright crashes and random browser exits in CI?

Playwright

Random exits are commonly resource-related: low memory, too many workers, or unstable shared CI agents. Reduce concurren...

How to fix Playwright route mocking that does not intercept requests?

Playwright

Interception fails when route patterns do not match actual request URLs or are registered too late. Register page.route(...

How to fix Playwright selectors that fail with Shadow DOM components?

Playwright

App code using Shadow DOM can hide internals from brittle CSS selectors. Prefer user-facing locators (getByRole, getByLa...

How to fix Playwright "strict mode violation" locator errors?

Playwright

strict mode violation means your locator matches multiple elements, but the action needs exactly one. Narrow the locator...

How to fix Playwright "Target page, context or browser has been closed" after crashes?

Playwright

This error appears when the browser process exits unexpectedly or test cleanup closes context/page early. Check for cras...

How to fix Playwright TimeoutError when an action exceeds timeout?

Playwright

TimeoutError usually means Playwright could not find an actionable element in time. Use a more specific locator, wait fo...

How to fix Playwright "strict mode violation" for locators?

Playwright

Strict mode means a locator used for an action must match exactly one element. Refine the locator with role/name/test id...

How to fix "Target page, context or browser has been closed" in Playwright?

Playwright

This error appears when code uses page after page.close(), context.close(), or browser.close(). Ensure cleanup runs afte...