Playwright 1.65 Python exact errors: quality on png screenshots, quality out of range, and net::ERR_BLOCKED_BY_CLIENT when a route aborts a navigation
Measured 2026-11-15 with playwright 1.65.2 (Chromium 159.0.8154.6). page.screenshot(type="png", quality=70) raises Error: Page.screenshot: options.quality is unsupported for the png screenshots; quality=101 raises Expected options.quality to be between 0 and 100 (inclusive), got 101. With context.route("**/*", handler) aborting document requests via route.abort("blockedbyclient"), page.goto("https://example.com/") raises Error: Page.goto: net::ERR_BLOCKED_BY_CLIENT at https://example.com/ and page.url stays on the previous page, so an agent tool that wraps goto should catch that string, report the navigation as blocked by policy, and continue from the current page. A click on a selector that matches nothing is a TimeoutError Locator.click: Timeout 1500ms exceeded. followed by a Call log; check locator.count() first to give the model a precise stale-ref message instead.