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
[Bug]: regression on browser.waitForTarget time out on v16, target.type() not returning valid value #8800
Comments
Thanks for the report. Could you provide an executable repro? We do have a test that waits for the service_worker and that is passing: https://github.com/puppeteer/puppeteer/blob/main/test/src/target.spec.ts#L186 so I wonder what is difference. How do you know that the type() is returning a wrong value? it looks like the service worker target is not detected? |
Yes. You can check this repo - tweak-extension/puppeteer-test-browser-ext#2. The setup is straightforward, the example is very minimal. |
i get the same problem, it helps me! |
@danielcaldas thanks for the repro! It looks like we were missing test coverage for this. |
Bug description
Steps to reproduce the problem:
Run the following:
See the statement
waitForTarget
will timeout onv16.1.1
. Same code snippet was working for puppeteerv15.5.0
. I believe the target worker is no longer being considered a target.Puppeteer version
16.1.1
Node.js version
14.16.1
npm version
8.1.4
What operating system are you seeing the problem on?
macOS
Relevant log output
console.log
ing thetarget.type
I get onlybrowser
andpage
:The text was updated successfully, but these errors were encountered: