You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A CLI flag (something like --reuse-page) to re-use the existing page that was running on the browser that puppeteer connects to.
The page can be selected from await lhBrowser.pages().
Are you willing to work on this yourself?
Yes
What is the motivation or use case for changing this?
It will help run lighthouse programmatically inside applications like CEF and Electron where opening a new page (by default) causes a failure when connecting to it through remote debugging port.
How is this beneficial to Lighthouse?
It will widen the audience to which lighthouse can be used and increase the tool's users.
Mentioned the changes in the screenshot:
The text was updated successfully, but these errors were encountered:
@adamraine I need to use the functionalities provided by lighthouse CI, (is-median runs, multiple runs, etc.) I cannot use node API if I want to use LIghthouse CI.
Gotcha. I think a solution in Lighthouse CLI could be tricky because the CLI can still connect to an existing browser instance with multiple tabs open. Maybe a quick solution would be to re-use a page if it's the only page open.
Feature request summary
A CLI flag (something like
--reuse-page
) to re-use the existing page that was running on the browser that puppeteer connects to.The page can be selected from
await lhBrowser.pages()
.Are you willing to work on this yourself?
Yes
What is the motivation or use case for changing this?
It will help run lighthouse programmatically inside applications like CEF and Electron where opening a new page (by default) causes a failure when connecting to it through remote debugging port.
How is this beneficial to Lighthouse?
It will widen the audience to which lighthouse can be used and increase the tool's users.
Mentioned the changes in the screenshot:
The text was updated successfully, but these errors were encountered: