Use proxies with Puppeteer

Learn how to set up residential and mobile proxies for test automation with Puppeteer.

Notice: Puppeteer works only with residential proxies!
  1. When you set up Puppeteer, fill in value
    proxy.froxy.com:9000
  2. Under ‘page.authenticate’ input your Froxy proxy login in the ‘username’ value and your password. You can find this information in your Froxy Dashboard
  3. Finally, example of your code should look like this
     const puppeteer = require('puppeteer');
    (async () => {
    const browser = await puppeteer.launch({
    headless: false,
    args: ['--proxy-server=proxy.froxy.com:9000'] });
    const page = await browser.newPage();
    await page.authenticate({
    username: 'LOGIN',
    password: 'PASSWORD'
    });
    await page.goto('https://froxy.com/api/detect-ip');
    })()
  4. You succesfully integrated Froxy with Puppeteer!