测试工具

Playwright

确保您的数字产品符合全球标准。通过Playwright和代理模拟来自不同地区的真实用户行为,以进行准确的分析。

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.
成功创业

开始使用Froxy进行测试与QA

Froxy提供专为模拟现实世界条件进行全面测试的代理。访问全球IP地址,确保您的应用程序和网站无缝运行。

让您的测试过程无缝进行。选择一个计划,今天就开始吧。