ChainSafe / dappeteer

[DEPRECATED]🏌🏼‍E2E testing for dApps using Puppeteer + MetaMask
Other
491 stars 152 forks source link

Stuck when I use --proxy-server option #337

Open Evan-Baekdu opened 1 year ago

Evan-Baekdu commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

How can I use proxy in this library??

I'm stuck when I use --proxy-server option like below

import * as dappeteer from "@chainsafe/dappeteer";

const main = async () => {
  const { browser } = await dappeteer.bootstrap({
    headless: false,
    puppeteerOptions: {
      args: ["--proxy-server=https://104.18.44.93:80"],
    },
  });

  const page = await browser.newPage();

  await page.goto("https://www.google.com/");

  const newVar = await browser.pages();
  await page.screenshot("screenshot.png");
};

main();

when I use --proxy-server option, It is stucked like below screenshot, and When I don't use, it is fine. image

I don't know why this happen.

Any help??? or Any other developer use oxylabs proxy in dappeteer library??

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Logs

Some Logs from console

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System:

Additional context Add any other context about the problem here.

BeroBurny commented 1 year ago

Seems like is issue on your proxy server