In this article, you will learn how to set up residential and mobile proxies for automated testing in Puppeteer.
Note: Puppeteer only works with residential proxies!
- Once you have set up Puppeteer, set the following values:
proxy.froxy.com:9000
- Under "page.authenticate", paste the login and password data from your Froxy Dashboard.
- In the end, 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 have successfully configured the Froxy proxy in Puppeteer!
If you still have any questions about the operation of our service froxy.com, you can ask them in the online chat in the lower right corner of the site or contact support at support@froxy.com.