Agent Browser connection
Connect Playwright to the authenticated Scrapeless browser endpoint over CDP.
Connect Playwright to Scrapeless Agent Browser over CDP. Keep your page automation in Playwright while Scrapeless runs the browser session.
Playwright is a browser automation library for interacting with web pages. Use scripts to navigate, locate elements, read content, and test browser behavior.
Playwright connects to Scrapeless Agent Browser over CDP. These capabilities belong to the remote browser service; your framework keeps control of the task.
Connect Playwright to the authenticated Scrapeless browser endpoint over CDP.
Scrapeless runs the browser and JavaScript; Playwright controls page navigation and the content your task extracts.
Configure the browser session’s supported proxy options, such as its proxy country, on the Scrapeless connection.
Create a remote session for the task, control its lifetime, and close it when your work finishes.
Inspect an active Scrapeless browser session while your Playwright task runs.
Enable session recording when needed and review the recorded run after the browser task.
Connect Playwright to the Scrapeless browser endpoint over CDP. Keep navigation and extraction in your script while Scrapeless runs the browser.
Playwright keeps its own navigation and extraction code.
A Scrapeless API key and authenticated browser endpoint. Node.js with playwright-core. A known public page for the first test.
Install playwright-core and set SCRAPELESS_API_KEY in the terminal you will use to run the example.
Ready to get started? Create your Scrapeless account →
Build the authenticated Scrapeless WebSocket URL and connect to the remote browser. Step 03 includes the complete script.
Run node first-page-playwright.cjs. For example.com, expect Example Domain in the title and heading. The script closes the browser after the request.
Open a page such as example.com through Scrapeless Agent Browser. Connect Playwright over CDP, run your page-reading logic, and inspect the returned content before passing it to your application.
{
"url": "https://example.com",
"html": "<h1>Example Domain</h1>\n<p>This domain is for use in documentation examples.</p>"
}Bring search, scraping, and browser automation into the tools you already use.