Run your Playwright scripts against a Surfsky cloud browser.
Playwright connects to a Surfsky browser over the session’s CDP WebSocket URL instead of launching one itself. The browser runs in Surfsky’s cloud, so you do not need Chromium on your machine.To have a coding agent set this up in your project, give it the setup prompt.
Playwright has known leaks that anti-bot scripts can detect. On sites with bot
protection, use a patched fork such as Patchright or rebrowser-playwright.
Use human-emulation commands for clicks, typing, and scrolling.
Keep Playwright for navigation, selectors, waiting, and page content.
Set your API token and base URL. The examples use your account’s default proxy pool. Proxy, fingerprint, and other start options are in the API reference.
Add Playwright to your project using the official instructions. Start a browser with the REST quickstart and export the returned ws_url as SURFSKY_WS_URL.
Prefer human emulation over Playwright’s own click, fill, and scroll. Human.* commands move the cursor and type with human timing, and they run through a page-level CDP session. Replace the selector with an input on your page:
Playwright’s browser.close() only disconnects from a browser attached over CDP. Without the SDK, stop it through CDP as the Java and .NET examples do. In async Python: