🔥 HEATWAVE: up to 30% off all proxies Froxy's hottest sale of the year. Ends August 31.
31
days
09
hours
54
minutes
43
seconds
Grab the deal

Testing Utilities

Playwright

Ensure that your digital products meet global standards. Playwright and proxies will allow you to simulate real user behavior from different regions for accurate analytics.

Playwright
  1. To use Playwright and set up your proxies you need to paste this code example
     const playwright = require('@playwright/test');
     const launchOptions = {
         proxy: {
             server: 'proxy.froxy.com:9000',
             username: 'login',
             password: 'password'
         }
     };
     (async () => {
         const defaultBrowser = await playwright['chromium'].launch({});
         const context = await defaultBrowser.newContext();
         const page = await context.newPage();
         await page.goto('https://froxy.com/api/detect-ip');
         console.log('chromium without proxy:', await page.textContent("*"));
         await defaultBrowser.close();
    
         for (const browserType of ['chromium', 'firefox', 'webkit']) {
             const browser = await playwright[browserType].launch(launchOptions);
             const context = await browser.newContext();
             const page = await context.newPage();
             try {
                 await page.goto('https://froxy.com/api/detect-ip');
                 console.log(`${browserType} with proxy:`, await page.textContent("*"));
             } catch (e) {
                 console.log(e);
             }
             await browser.close();
         }
     })();
    
  2. Please, add proxy config in playwright.config.ts use section
  3. You can get all information concerning server/port, login and password in your Froxy Dashboard
For additional info you can visit Playwright development portal.
Succeed at Your Business

Get Started with Froxy for Testing and QA

Froxy offers proxies designed to simulate real-world conditions for thorough testing. Access global IP addresses and ensure your applications and websites perform flawlessly.

Make your testing process seamless. Choose a plan to get started today.