Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetCookies feature is not working as expected #26

Open
aungheinaye opened this issue Dec 12, 2023 · 0 comments
Open

SetCookies feature is not working as expected #26

aungheinaye opened this issue Dec 12, 2023 · 0 comments

Comments

@aungheinaye
Copy link

Describe the bug
When I pass the login cookies via .SetCookies in ScraperEngineBuilder as example mentioned, the login was not set properly.

To Reproduce
Steps to reproduce the behavior:

  1. Extract login cookies from the selenium chrome browser
  2. Inject the cookiecollection into puppeteer via .SetCookies with ScraperEngineBuilder as in example
  3. Run it with headless mode to see the login status. (Make sure set parallelsimDegree to 1)
  4. target page will load for three times and throw the error.

Expected behavior
The target page shall be loaded with login set.

Desktop (please complete the following information):

  • OS: Windows11
  • Browser Chrome
  • Version 119.0.6045.200

Additional context
Please have a look in PuppeteerPageLoader.cs: line 63 .
I think url must be loaded prior setting the cookie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant