Playwright Basic Auth: 401 Loop, Popup and Credentials
Separate a missing HTTP challenge from a login form or routed response. A local 401 fixture shows where Playwright sends credentials and where it cannot.
Topic Archive
75 articles in Getting Started
Browse other topics
This article lives in the editorial library. For step-by-step setup, reference material, and ongoing updates, jump into the docs section.
Category overview
This archive groups 75 articles on Getting Started. Use it to move from editorial reads into practical BotBrowser guidance, then continue in Getting Started.
Common tags in this topic
Articles
75
Latest update
Nov 25, 2026
Docs section
Getting Started
Three strong reads to understand this topic before diving into the full archive.
Separate the flag, the HTTP discovery endpoints and the CDP socket before reading a refused connection as a broken flag. Measured on one owned launch.
One owned Chrome run measures what stays separate between multiple browser profiles: cookies, localStorage, IndexedDB, and what the host still shares.
Additional guides from this topic archive.
Separate a missing HTTP challenge from a login form or routed response. A local 401 fixture shows where Playwright sends credentials and where it cannot.
clearCookies() wipes the cookie jar alone, a fresh context empties all three state surfaces, and a fresh browser redraws the profile boundary.
Separate the download event, the suggested filename, the temporary path and the completed bytes before asserting on a file. Measured on one owned page.
Separate what a device descriptor sets, what it leaves to the context, and who wins when both name the same surface. Measured on one owned Chrome run.
A server asks for a client certificate and the run fails. Check the origin binding, then separate what Playwright sends from what the server rejects.
Separate archived responses from live-origin work in Playwright HAR replay, with four labelled outcomes and a reviewable request fixture.
Put the certificate setting in the MCP object that actually carries it, then state clearly what ignoring an HTTPS error still does not validate.
Three owned failures print the same certificate error. Read the certificate the browser actually got, then decide what ignoring the error changes.
See how Playwright chooses a managed Chromium, executablePath or channel, and what Browser.getVersion still reports from the package.
Compare screenshot computer use with accessibility-based browser control, and separate visible state, permission prompts and application outcomes.
Port one Puppeteer task to maintained Python with explicit waits, interception, evaluation and browser-context cleanup.
Find which layer applies a scrapy-playwright proxy and why reusing a named browser context can keep the old egress.
Map an LLM browser action from snapshot choice through tool admission, browser execution and application outcome, with a failure-attribution table.
See why fastForward fires interval timers once while runFor visits every interval, and choose the operation before asserting a countdown or expiry.
Distinguish a Playwright popup, a native dialog and an in-document modal by event type, page count and blocking behavior, then assert the right surface.
Diagnose uneven Playwright shards, compare file and parallel distribution, then merge blob reports without losing a test or a failure.
Read a Playwright timeout error to identify whether the test, expectation, action or hook budget expired before changing configuration.
Playwright WebSocket vs HTTP route: route() intercepts the opening HTTP reply; each later frame needs a proxy. Choose by which exchange the test controls.
Choose DevTools MCP or Playwright MCP for your own page: compare UI state, request details, Chrome performance traces and session isolation.
Review a Playwright ARIA snapshot diff by separating captured names, partial-match templates and visual changes before updating an expected snapshot.
Missing Playwright console logs? Separate Node stdout, browser console messages and uncaught page errors; attach listeners early, then read page history.
Diagnose a Playwright iframe not loading, a detached Frame or the wrong nested frame. Compare three local fixtures and verify the order receipt.
Playwright networkidle can time out on a usable page or resolve too early. Compare load states with actionability, then assert the actual UI result.
Fix a Playwright wait for response after clicking Save: register before the click, match the POST, check its HTTP status and verify the resulting UI.
Separate Browserbase session status, saved Contexts, network routing and retained artifacts from your scraping application’s results and responsibilities.
Distinguish Scrapy request fingerprints from browser signals, HTTP responses from executed pages, and default downloads from browser-backed integrations.
Choose between a browser you drive, a hosted result API, and a browser extension by page control, state ownership, permissions, and failure responsibility.
Diagnose an async Playwright run that stalls. Compare cooperative waits, blocking calls and thread offloading, then define browser and cleanup ownership.
Size an authorized web crawl with request spacing, concurrency, pauses and retries. Calculate a finite budget and why partial results stay partial.
Choose an Instagram route by account type, authorization, API setup and returned fields. Identify when Business Discovery, oEmbed or a browser cannot.
A pre-collection decision record for scraping: source terms, data scope, request load and retention, with the exact point where counsel is required.
Match X Posts, mentions, search and home feeds to the right endpoint, history window and auth. Separate embed HTML and browser views from API data.
Compare undetected-chromedriver with browser-layer configuration by ownership, update surface, and the evidence an authorized fixture can record.
Separate URL discovery from field extraction, define their handoff, and diagnose missing pages versus incomplete records before choosing a browser.
Four ethical scraping decisions a data team can test without a lawyer: request load, data minimization, attribution and the effect on the source.
Follow a web crawler from seed URLs to its next request, with a concrete trace of scope checks, fetching, parsing, link discovery and queue decisions.
Diagnose Playwright proxy routing, context exclusions and SOCKS5 authentication, then separate two real exit addresses from unchanged profile signals.
Fix a Playwright strict mode violation by inspecting duplicate matches, narrowing the intended component and verifying the result with a runnable fixture.
Generate Puppeteer PDFs with explicit page settings, print CSS, reliable page breaks, and a practical checklist for missing Chinese glyphs.
Diagnose Puppeteer proxy authentication and SOCKS5 failures, then compare two authorized exits against the same profile, timezone, language and canvas.
Fix Selenium element not interactable by checking the command, hidden duplicates, frame, control state and click obstruction in a local Python fixture.
Diagnose Selenium shadow DOM lookup failures with a local Python fixture: document boundaries, nested roots, closed roots and component replacement.
page.addInitScript and context.addInitScript have no defined evaluation order. See what that does to a patched fingerprint, and how to prove which write won.
Selenium headless Chrome differs from headed in ways a page can read. Check the ChromeOptions, default window size and why it is easier to single out.
JavaScript infinite scroll pagination has three causes: a selector, a callable request, or rendering; test them in that order before paging.
Choose a browser for authorized web scraping with six workload-based measures for correctness, state, cost, concurrency, observability, and maintenance.
Compare agent and MCP browser launch ownership, what tools expose, what operators must verify, and how headless differs from runtime limits.
Compare headed Chrome, unified headless, and headless shell for scraping. Track renderer, viewport, and webdriver signals without claiming a site verdict.
Configure Playwright for an authorized list-to-detail run. Separate profiles, cookies and extraction errors, then save a useful JSON result.
Map Puppeteer launch, viewport, storage, and headless options to page-visible observations in an owned scraping fixture.
A practical approach to launching browser profiles with Selenium, keeping storage isolated, and closing sessions cleanly in authorized tests.
Build a bounded Selenium scraping run with an explicit Chromium binary, a capability receipt, a readiness condition, and validated catalogue records.
Choose Selenium waits from observable browser contracts so authorized tests remain readable, diagnosable, and stable across ordinary timing changes.
Configure browser-use with an explicit Chromium executable and profile, verify the launch, and keep human approval around consequential browser actions.
Order install, profile launch, context isolation and evidence into one repeatable first run, without claiming a test you did not perform.
Avoid the Puppeteer mistakes that break BotBrowser profile consistency: defaultViewport overrides, bundled Chromium and browser-level CDP session mix-ups.
Build browser automation tests that check keyboard access, semantic names, focus, announcements, and inclusive failure states.
Copy-paste BotBrowser launch recipes, from minimal headless start to proxy and multi-instance setups, with notes on how CLI flags override profile values.
Understand WebDriver BiDi sessions, events, transport, and bounded assertions for maintainable browser automation.
Design deterministic BrowserContext lifecycles, isolated storage state, and honest cleanup boundaries for authorized browser tests.
Use Playwright traces to diagnose authorized browser tests while controlling capture scope, sensitive contents, sharing, and retention.
Turn a browser failure into a useful, privacy-safe report with expected behavior, minimal reproduction steps, and environment facts.
Write browser test reports that separate expected behavior, observed evidence, uncertainty, privacy boundaries, and product action.
Separate browser, application, profile, platform, and data changes before assigning cause or choosing a rollback.
Make browser file transfers reliable with owned fixtures, explicit completion checks, isolated artifacts, and privacy-aware cleanup.
Use controlled network doubles to make authorized browser tests deterministic while keeping production and third-party boundaries explicit.
Plan browser and driver updates with explicit pins, compatibility evidence, rollback criteria, and bounded failure handling.
Design browser automation fixtures with clear ownership, isolated state, safe parallel workers, and deterministic cleanup.
Learn who owns Puppeteer browsers, contexts, pages, popups, timeouts, and cleanup so authorized tests finish without leaking resources.
Decide when to enable per-context CDP hover coalescing, validate the visible result, and keep click, drag, wheel, keyboard, touch and pen on normal paths.
Enable browser page translation with your own Google Cloud key while keeping privacy, profile consistency, and cost controls explicit.
Proxy launcher for BotBrowser: one egress route per profile, exit IP checked before launch, memory and version settings kept per session.
Manage BotBrowser profiles with clear ownership, release compatibility, controlled changes, and repeatable privacy validation.
Load a profile, keep the signals you just read about consistent inside the browser, and confirm the result on your own machine before a rollout.