-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Lighthouse with Puppeteer on the same tab-page #14186
Comments
Try using the user flow API instead. We should update our auth docs to use that too. |
Also worth noting that the new Lighthouse API on master can accept a puppeteer page to address this use case. This new API is experimental and will be released in Lighthouse 10.0. lighthouse/lighthouse-core/index.js Lines 32 to 42 in 03af403
|
This is done but it hasn't been merged to master yet. You can see it here: https://github.com/GoogleChrome/lighthouse/tree/10-docs-staging/docs/recipes/auth |
I need to analyze some pages of a web application that has an authentication system.
After reading the different options on the documentation
I developed the following script
The Puppeteer script logs in correctly and lighthouse can analyze the objective page, but before I get a redirection that I do not get when I execute the analysis from the dev-tool.
Obviously, this previous redirection changes the results I get.
As far as I understand the Puppeteer launches a Chrome browser and executes the steps on the page and then lighthouse uses that same browser to execute the analysis but on a different tab, am I right?
If that is true the current solution does not fit our needs, because we need to work on the same tab in which we have logged in previously to avoid the
/auth-callback
to rise.¿Would be any possibility to execute lighthouse on the same tab that Puppeteer is working? Or any other alternative that we could use?
Thanks in advance.
The text was updated successfully, but these errors were encountered: