ZFC-Digital / puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.
https://www.npmjs.com/package/puppeteer-real-browser
MIT License
795 stars 95 forks source link

save user data faill #228

Open baba990aini opened 1 week ago

baba990aini commented 1 week ago

Description

  customConfig: {
    userDataDir: path.resolve(process.cwd(),'user_data')
  }

Unable to start after configuration

Full steps to reproduce the issue

const { browser, page } = await connect({ headless: false, args: [], customConfig: { userDataDir: path.resolve(process.cwd(),'user_data') }, turnstile: true, connectOption: {}, disableXvfb: false, ignoreAllFlags: false })

Issue Type

Others

Operating System

Mac OS

Do you use Docker?

None

RubberArchind commented 1 week ago

what's the error? i can run the browser smoothly with that configuration

baba990aini commented 1 week ago

what's the error? i can run the browser smoothly with that configuration

The log did not report any errors, but after logging into a certain website, when I closed the project and restarted it, I still did not log in and did not save my information. You should try to find a website that can log in to, whichever one works

RubberArchind commented 1 week ago

it save my information in my case. I try to login to app.daily.dev, close the browser and rerun the code, open the page again, and i already logged in.

baba990aini commented 3 days ago

it save my information in my case. I try to login to app.daily.dev, close the browser and rerun the code, open the page again, and i already logged in.

emmm,I try it again