Premip

Automation

Run browser automation with Playwright, Selenium or Puppeteer through a dedicated mobile connection.

The problem

Test suites, monitoring jobs and scheduled tasks often need to run from a specific country or network type, and from more than one IP at a time.

Which proxy fits

Dedicated mobile proxies keep a connection reserved for one job, and shared ones cost less for light use. HTTP and SOCKS5 work with every major automation framework. Rotate through the API to change the IP between runs.

What you can do

  • Playwright, Selenium and Puppeteer
  • On-demand IP rotation
  • HTTP and SOCKS5

How to set it up

  1. 1

    Add the proxy to the framework

    Pass host, port, username and password in the launch options: the proxy option in Playwright, browser arguments in Selenium, or --proxy-server in Puppeteer.

  2. 2

    Pick session behavior per job

    Use a sticky session for a job that logs in. Rotate between runs for independent jobs.

  3. 3

    Keep credentials out of scripts

    Store the username and password in your worker’s secret store, or whitelist the worker’s IP so scripts carry no credentials.

Limits and best practices

  • Never commit proxy credentials to git.
  • Automate only systems you own or have permission to test.
  • Set timeouts and retries. Speed on mobile networks varies.

Mobile or residential?

Follow the terms of the sites and platforms you use. A proxy does not make a prohibited activity allowed.

Guides to read next

All articles