Using Smart Proxy Manager with Playwright


Playwright requires Node.js and npm installed and an active Smart Proxy Manager account. Log in or signup here.

Setup the Smart Proxy Manager Headless Proxy as described in Using Headless Browsers with Zyte Smart Proxy Manager.


Download and install Playwright:

$ npm install playwright

Sample script

Here is a sample script you can use to test the integration of PLaywright with Smart Proxy Manager, once you have installed the Headless Proxy.

const playwright = require('playwright');

async function main() {
    var browserFirefox = await playwright.firefox.launch({
        proxy: {server: "localhost:3128"}
    var url = ""
    const page = await browserFirefox.newPage({ignoreHTTPSErrors: true});
    await page.goto(url);
    await page.screenshot({path: 'screenshot.png', fullPage: true});
    await browserFirefox.close();