Skip to main content

How to Use Proxidize With Selenium

Connect Selenium to a Proxidize HTTP or HTTPS endpoint authenticated by IP allowlisting, then verify the route inside the browser.

How to Use Proxidize With Selenium

Configure Selenium for Proxidize

Selenium's standard browser proxy capability accepts a hostname and port but does not provide one portable username/password flow across drivers. The public repository therefore uses a Proxidize endpoint authenticated through an approved IP allowlist.

Keep the endpoint and credentials in environment variables. Use the exact HTTP or HTTPS scheme shown in the Proxidize dashboard.

bash

Run the Integration

Install the pinned Selenium release plus a compatible Chrome or Chromium browser. Add the automation host's approved public IP to the access point before running the example.

IP-allowlisted Chrome session

Apply the endpoint before creating the driver and verify the visible IP inside that browser session.

yaml

Control Sessions and Rotation

Treat one WebDriver session, browser profile, cookie jar, and sticky proxy identity as one unit. Quit the driver before changing endpoints or identities so old browser connections cannot survive the rotation boundary.

Use a sticky session when related requests must keep the same temporary network identity. Use rotation for independent requests, and rotate only at an intentional workflow boundary. Cookies, browser storage, and application state should change with the proxy identity rather than halfway through a stateful task.

Verify the Proxied Network Path

Run the IP-check example through the same client or browser context that will perform the permitted workload. A successful request from another terminal or library does not prove that this integration uses the same proxy route.

The repository example prints a redacted endpoint and the visible exit IP. It does not print the username or password. Confirm the intended US mobile or residential profile before using an approved target.

Troubleshoot Common Failures

  • If the direct host IP is not allowlisted, the browser cannot authenticate through this portable configuration.
  • A browser authentication extension adds credential-storage and profile-security risks and is intentionally excluded from the public example.
  • Match the browser and driver versions before diagnosing proxy behavior.

Test in layers: first verify the endpoint and credentials, then the IP-check URL, and only then the intended destination. Keep TLS verification enabled and treat repeated timeouts separately from authentication failures.

Production Checklist

  • Keep credentials in environment variables or a secrets manager.
  • Match one sticky session to one stateful worker or browser context.
  • Bound concurrency, retries, queue length, and request rate.
  • Redact proxy credentials from exceptions, traces, and logs.
  • Verify the exit location and protocol before scaling.
  • Follow applicable laws, third-party terms, and destination rules.

FAQ

Integration FAQs

Common questions about using Proxidize with Selenium.

No. Selenium connects through standard proxy settings, so the Proxidize endpoint and authentication values can be passed directly to the supported client configuration.

Yes, when the selected access point supports the required protocol. Use residential proxies for broad geographic coverage and US mobile proxies when the workflow specifically requires mobile-network identity.

Use one WebDriver instance for one sticky workflow. Quit it and create a new driver after selecting the next endpoint or session.

Request an IP-check endpoint through the same client, crawler, or browser context, then compare the visible exit with the machine's direct public IP.

Selenium's standard proxy capability does not expose a portable authenticated HTTP proxy setting across supported browsers and drivers. IP allowlisting avoids embedding credentials in a browser extension or profile.

Keep Going

Other Proxidize integrations

See all Proxidize integrations →

Ready to run on clean proxies?

Start free today, or talk to our team to build a plan around your scale.

KYC required to start