AbrasioDocumentation

Exceptions — Abrasio browser automation SDK docs

Stealth browser automation built on Patchright — a Playwright fork that patches CDP leaks, removes navigator.webdriver and fixes headless indicators. Available as a free local SDK or a cloud-managed service.

Realistic Fingerprint

WebGL, canvas, audio and WebRTC noise so each session presents a consistent, realistic fingerprint.

Human Behavior

Bezier-curve mouse movement, variable typing speed with typos, realistic scroll patterns.

40+ Geo-Regions

Auto-configures locale, timezone, and proxy geo-routing for BR, US, DE, JP, and more.

Persistent Profiles

Cookie jars and browser state survive across sessions — local file or cloud-managed.

CDP WebSocket

Cloud sessions connect via Chrome DevTools Protocol — same API as local Playwright.

Free Local Mode

No API key, no cost — runs Patchright on your machine. Upgrade to cloud for managed infra.

Documentation

Abrasio Node.js SDK reference

SDK:

All exceptions extend AbrasioError. Import specific classes for granular error handling.

import {
  Abrasio,
  AbrasioError,
  AuthenticationError,
  InsufficientFundsError,
  TimeoutError,
  BlockedError,
  RateLimitError,
} from 'abrasio-sdk';

try {
  const abrasio = new Abrasio({ apiKey: 'abr_live_...' });
  await abrasio.start();
} catch (error) {
  if (error instanceof AuthenticationError) {
    console.error('Invalid API key');
  } else if (error instanceof InsufficientFundsError) {
    console.error(`Low balance: $${error.balance?.toFixed(2)}`);
  } else if (error instanceof TimeoutError) {
    console.error(`Timed out after ${error.timeoutMs}ms`);
  } else if (error instanceof BlockedError) {
    console.error(`Blocked by site: HTTP ${error.statusCode}`);
  } else if (error instanceof RateLimitError) {
    console.error(`Rate limited. Retry after ${error.retryAfter}s`);
  } else if (error instanceof AbrasioError) {
    console.error('Abrasio error:', error.message, error.details);
  }
}