-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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. : ( puppeteer + lighthouse ) #7876
Comments
Howdy chief! Appreciate you filing this bug. 👏 This is a known issue that is best described in #3024. So, we'll automatically close this as a duplicate. However, if you believe your bug is different than the cases described there, please comment here with "necessarily-wide-alpaca" and I'll reopen this bug. 🤖 Beep beep boop. |
Yup the already file issue is my reference to resolve it manually but I need to do it programmatically. |
necessarily-wide-alpaca |
Can you give us a little more info on your setup? The error, as its message implies, means that you probably have more than one tab open :) Note that depending on your Chrome version some web features like |
yup true. I am using puppeteer to launch chromium I noticed there are Iframes in the website and as mentioned in the issue #3024 is one of the cause of the error...but how can I make it working programatically ? one solutions which I tried to check was to eliminate the Iframe from the DOM using puppeteer programatically but then control transfers to LH and it loads the entire page in new tab for it operation and fails with the above mentioned error. |
So it's fine if the page creates new tabs/iframes/etc while Lighthouse is running, it's just a problem if they exist before Lighthouse is called. I'm assuming you're using puppeteer to do some sort of setup (login or whatever), so if you navigate away from your page or close the tab before Lighthouse is called, you should be able to get around the error. |
@patrickhulce suggested solution is definitely one of the working solution. |
@ankurgpt6719 the content on the page is never retained with Lighthouse at the moment anyhow, we always reload the page. Glad you got it working! See #1769 if you have input on not requiring the refresh. I'll go ahead and close this for now since you got it working, but feel free to reopen if there's more to add. |
Hi,
I understand that the above mentioned issue ( in headline ) is already discussed and resolved here : #3024
But I am trying to use lighthouse programmatically integrated with puppeteer and here I am encountering this issue
Error: You probably have multiple tabs open to the same origin.
.Please help me on how can I resolved this issue programmatically.
Thank you
The text was updated successfully, but these errors were encountered: