Skip to content

Test

Status: NEEDS-ACCOUNT (paid)

Classification: NEEDS-ACCOUNT (paid cloud service) Install method: No dedicated SDK. Use Playwright (npm install playwright) or Puppeteer as the client. Connect via Bright Data WebSocket endpoint. Cost tier: Paid only. Requires an active BrightData account with the Scraping Browser product enabled. No meaningful free tier. See brightdata.com for current pricing. What is required: A BrightData account at brightdata.com, Scraping Browser product activated, and valid zone credentials formatted as brd-customer-CUSTOMER_ID-zone-ZONE_NAME:PASSWORD. No self-hosted option.

There is no CLI smoke-test command for Bright Data Scraping Browser. The service requires valid zone credentials to open any session. The minimal functional test is a short Playwright script that connects to the remote browser and confirms you can fetch a page.


Smoke Test (Playwright, Node.js)

Prerequisites: npm install playwright and valid AUTH credentials.

Save as smoke.js:

javascript
const playwright = require('playwright');

const AUTH = 'brd-customer-CUSTOMER_ID-zone-ZONE_NAME:PASSWORD';

(async () => {
    const browser = await playwright.chromium.connectOverCDP(
        `wss://${AUTH}@brd.superproxy.io:9222`
    );
    const page = await browser.newPage();
    await page.goto('https://example.com');
    const title = await page.title();
    console.log('Page title:', title);
    await browser.close();
})().catch(err => {
    console.error('Connection failed:', err.message);
    process.exit(1);
});

Run it:

bash
node smoke.js

Expected Success Output

Page title: Example Domain

If the connection succeeds and the page loads, the title of https://example.com is Example Domain. No error is thrown and the process exits with code 0.


What Failure Looks Like

ErrorCause
WebSocket connection failedWrong credentials or zone not configured
net::ERR_PROXY_CONNECTION_FAILEDZone suspended or invalid customer ID
TimeoutErrorTarget site unreachable, or CAPTCHA solving timed out
Error: 401 UnauthorizedPassword incorrect

Version Check

There is no --version flag. To confirm the client library version:

bash
node -e "console.log(require('playwright/package.json').version)"

Expected output (version will vary):

1.44.0

Notes

  • This test requires a paid Bright Data account with an active Scraping Browser zone.
  • tested=false for this SOP because running the smoke test requires live credentials that are not present in this environment.