botrefund.com
← BotRefund Home AUTOMATION SIGNATURE DETECTION

Playwright Initialization Marker

BotRefund checks window.__pwInitScripts directly in the global page scope to detect Playwright initialization-script execution with high confidence.

What we test

The browser automation probe inspects the global window object directly to check whether window.__pwInitScripts is defined in the page scope. Rather than measuring initialization script execution timing, the check tests specifically for the presence of this runtime binding.

When window.__pwInitScripts is anything other than undefined, the collector records a positive framework-marker signal inside the session telemetry payload for server-side automation evaluation.

Why it matters

Playwright injects window.__pwInitScripts internally to coordinate scripts registered through context.addInitScript() or page.addInitScript(). Standard consumer Chrome, Safari, Firefox, and Edge browsers never define this global property during normal browsing.

Because __pwInitScripts originates directly from Playwright's script-injection harness rather than any legitimate consumer extension or accessibility tool, detecting it provides deterministic attribution of Playwright browser instrumentation.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

Standard consumer browser

Evaluating typeof window.__pwInitScripts returns 'undefined', confirming that no Playwright initialization script harness is attached to the page window.

Example result Global property window.__pwInitScripts: undefined — Result: no Playwright marker detected
02 POSSIBLE AUTOMATION SIGNAL

Playwright init-script bridge exposed

A Playwright browser executing injected initialization scripts leaves window.__pwInitScripts defined on window, producing a high-confidence automation framework signature.

Example result Global property window.__pwInitScripts: defined — Result: strong Playwright automation signature

Forensic significance: Strong standalone indicator of Playwright automation; analysts still review interaction and environment signals together when inspecting unusual developer sessions.