> ## Documentation Index
> Fetch the complete documentation index at: https://docs.toolip.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Set Up Toolip With Playwright

> Streamline your web automation with Toolip and Playwright. This guide shows you how to configure secure, anonymous proxies that reduce detection risks and keep your tasks running smoothly.

<img src="https://mintcdn.com/toolip-d3ca8ce9/c1hZoipc-TpLQUvw/integration-guides/img/toolip_integrations/Playwright.png?fit=max&auto=format&n=c1hZoipc-TpLQUvw&q=85&s=a8b657c54aa51668c1086249fd9128f3" alt="title" width="720" height="200" data-path="integration-guides/img/toolip_integrations/Playwright.png" />

## What is Playwright?

**Playwright** is a powerful automation framework for controlling web browsers, ideal for web scraping, automated testing, and online interactions. It supports multiple browsers, including Chrome, Firefox, and Edge, allowing you to execute complex automation tasks efficiently.

Integrating **Toolip** with Playwright ensures your automated requests remain anonymous, reducing the risk of bans while maintaining a stable and secure connection.

Prefer an enterprise-grade guide? Learn more about Oculus Proxies <a href="https://docs.oculusproxies.com/integration-guides/playwright" target="_blank" rel="noopener">Playwright Integration Guide</a>.

<Tip>
  Targeting search engines like Google, Bing, or Yandex requires a specialized proxy to ensure stable access and avoid blocks. **Toolip’s Search Engine ISP Proxies** are designed specifically for this, providing reliable performance where standard proxies may fail. If your proxy test isn't working on search engines, switching to **Search Engine ISP Proxies** can resolve the issue.
</Tip>

## How to Integrate Toolip With Playwright

<Steps>
  <Step title="Install Node.js and Playwright">
    1\. Ensure you have **Node.js** installed. If not, download and install it from [nodejs.org](https://nodejs.org/).

    2\. Install Playwright in your project:

    ```bash theme={null}
    npm install playwright
    ```
  </Step>

  <Step title="Configure Playwright With Toolip">
    1\. Set up Playwright to use Toolip by adding proxy details in the browser launch options.

    2\. Use the format `host:port` for the **proxy server** and include authentication credentials.

    3\. Below is a sample script to configure Playwright with Toolip:

    ```javascript theme={null}
    const { chromium } = require('playwright');

    (async () => {
      // Launch browser with proxy settings
      const browser = await chromium.launch({
        headless: false,  // Set to true for headless mode
        proxy: {
          server: 'http://[HOST]:[PORT]',  // Replace with your Toolip host and port
          username: '[USERNAME]',          // Replace with your Toolip username
          password: '[PASSWORD]'           // Replace with your Toolip password
        }
      });

      const context = await browser.newContext();
      const page = await context.newPage();

      // Test the proxy by visiting an IP verification website
      await page.goto('http://httpbin.org/ip');
      
      // Capture a screenshot to verify the setup
      await page.screenshot({ path: 'example.png' });

      await browser.close();
    })();
    ```
  </Step>
</Steps>

With **Toolip** integrated into **Playwright**, your automation workflows are now secure, anonymous, and more resilient to detection. Whether scraping data, automating interactions, or testing web applications, Toolip ensures stable and private browsing.
