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
Page.waitForSelector timeout issue with parallel page tests in a single browser instance #474
Comments
Quick question: would it timeout for you is you pass in await page.waitForSelector('.hidden', { timeout: 10000, visible: true }); |
@aslushnikov it passes when I pass that option, but only due to CSS visibility transition being enabled =) When I disable the CSS transition, it fails again. Essentially I'm trying to do the opposite of Is this a problem where Lastly, would a small test repo for this help out? |
I also just tried the original code, but with CSS transitions disabled for my element. Same failure. |
I think the problem may be here: https://github.com/GoogleChrome/puppeteer/blob/151d512ae2d652d8bc91db1ebcb635fd24a45d1a/lib/FrameManager.js#L498-L501 MutationObserver isn't firing when I directly modify the Should the |
Adding this to my local copy seems to fix it. |
Created PR @ #499 |
This patch fixes page.waitForSelector to resolve on attribute changes. Fixes #474.
What is this using? |
The following code is giving me issues: (Explanation below)
The second test only times out (sporadically) after hammering the browser with concurrent page tests. Every time it times out, the
evaluate
/log
combo shows the classname we're waiting for is present in the document.Before I go and try to set up a replication app or anything, I wanted to see if there was any ideas on why this was happening.
Thanks much! I'll try to replicate in a sandbox if it helps.
The text was updated successfully, but these errors were encountered: