> ## 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 Use Selenium with Toolip

> Integrate Toolip proxies with Selenium in Python to enhance your automation workflows. This guide helps you set up secure, anonymous connections for web scraping and browser automation.

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

## What is Selenium?

Selenium is a powerful, open-source tool for automating web browsers. It supports multiple programming languages, including JavaScript, Python, and Java, and provides a robust API for controlling browser actions. Selenium is widely used for web scraping, automated testing, and browser-based workflows. With its flexibility and cross-browser compatibility, it’s an essential tool for developers and testers alike.

Prefer an enterprise-grade guide? Learn more about Oculus Proxies <a href="https://docs.oculusproxies.com/integration-guides/selenium" target="_blank" rel="noopener">Selenium 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>

<Steps>
  <Step title="Install Required Libraries">
    1\. Ensure you have **Python** installed. Download the latest version from [python.org](https://www.python.org/).

    2\. Install Selenium using pip:

    ```bash theme={null}
    pip install selenium
    ```

    3\. Install WebDriver Manager for automatic driver setup:

    ```bash theme={null}
    pip install webdriver-manager
    ```
  </Step>

  <Step title="Retrieve Toolip Proxy Credentials">
    1\. Log in to your [Toolip dashboard](https://toolip.io/dashboard/page/plans).

    2\. Copy your **Host**, **Port**, **Username**, and **Password**.
  </Step>

  <Step title="Configure Proxy in Python">
    1\. Open your **Python script** and define the Toolip proxy settings:

    ```python theme={null}
    # Toolip Proxy Configuration
    proxy_host = "proxy.toolip.io"
    proxy_port = "port"  # Replace with your port number
    proxy_username = "username"  # Replace with your Toolip username
    proxy_password = "password"  # Replace with your Toolip password

    # Full Proxy URL
    proxy = f"http://{proxy_username}:{proxy_password}@{proxy_host}:{proxy_port}"
    ```
  </Step>

  <Step title="Set Up Chrome Options">
    Configure **ChromeOptions** in Selenium to route traffic through Toolip:

    ```python theme={null}
    from selenium import webdriver
    from selenium.webdriver.chrome.service import Service
    from selenium.webdriver.chrome.options import Options
    from webdriver_manager.chrome import ChromeDriverManager

    # Configure Chrome Options
    chrome_options = Options()
    chrome_options.add_argument(f"--proxy-server={proxy}")
    ```
  </Step>

  <Step title="Initialize the WebDriver">
    Install **ChromeDriver** automatically and launch the WebDriver:

    ```python theme={null}
    # Initialize WebDriver
    service = Service(ChromeDriverManager().install())
    driver = webdriver.Chrome(service=service, options=chrome_options)
    ```
  </Step>

  <Step title="Test the Proxy Connection">
    1\. Use Selenium to navigate to an IP-checking website:

    ```python theme={null}
    print("Connecting to target website...")
    driver.get("http://httpbin.org/ip")

    print("Page content:")
    print(driver.page_source)

    # Close the browser
    driver.quit()
    ```

    2\. If the output displays a new IP address, your Toolip proxy is working correctly.
  </Step>

  <Step title="Verify the Output">
    When you run the script, you should see an output like this:

    ```json theme={null}
    {
      "origin": "123.45.67.89"
    }
    ```

    If the IP differs from your regular connection, the proxy has been successfully applied.
  </Step>
</Steps>

Whether you’re testing web applications, scraping dynamic content, or navigating geo-restricted websites, Toolip ensures reliability and privacy for all your automation needs. Start building smarter workflows with **Toolip** and **Selenium** today!
