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

Error: You probably have multiple tabs open to the same origin. #37

Open
arvigeus opened this issue Sep 22, 2022 · 0 comments
Open

Error: You probably have multiple tabs open to the same origin. #37

arvigeus opened this issue Sep 22, 2022 · 0 comments

Comments

@arvigeus
Copy link

arvigeus commented Sep 22, 2022

I am trying to run this code example from README: Running lighthouse on authenticated routes with the test runner. I use "https://playwright.dev/" and don't set any cookies (smoke testing)

"playwright-lighthouse": "^2.2.2"
"lighthouse": "^9.6.7",
"@playwright/test": "^1.26.0",

I managed it to run if I close the page in advance and use the url instead:

const url = page.url();
page.close();
await playAudit({
  url,
  port,
});

Browsing the source it seems there is no difference between url and page, so my guess is that documentation should be updated. In any case, if any future googler stumbles upon this issue, I hope it's useful!

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