Learn how to set up residential and mobile proxies for test automation with Puppeteer.
Notice: Puppeteer works only with residential proxies!
- When you set up Puppeteer, fill in value
proxy.froxy.com:9000
- Under ‘page.authenticate’ input your Froxy proxy login in the ‘username’ value and your password. You can find this information in your Froxy Dashboard
- 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');
})() - You succesfully integrated Froxy with Puppeteer!