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]: Sometimes the function page. Waitforxpath() does not detect the DOM that already exists #9682
Comments
This issue has an outdated Puppeteer version: |
This problem does not exist in version 5.4.1(which i currently use). |
Please provide a minimal reproducing example demonstrating the bug: a sample test page and a sample puppeteer script. Otherwise, we cannot help you with this. |
Could it be possible that i demonstrate it in my computer? |
I wonder what's the differences between run browser in top view and not run browser in top view? not_observe_browser.mp4This video recorded that after i launched the test,I watched it run.The case succeeds. |
the browser in headful mode can do all sorts of optimizations if the window is closed and tab is no active. Could you try if it works in headless? Also, try calling |
Can you try/catch the timeout error and print out the web page DOM structure to see if the element is actually there? |
It works ok in headless mode. |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
This error is not a rare thing using proxy:
The error comes from cucumber and it devastes our tests :( |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accommodate it! |
Bug expectation
Sometimes the function page. Waitforxpath() does not detect the DOM that already exists
#4072
I have the problem in the latest puppeteer version 19.6.3.
Bug behavior
Minimal, reproducible example
Error string
TimeoutError: Waiting for selector
.//div[@style='visibility: visible;']//*[contains(@class,'tui-dropdown')]//*[text()='全局替换']
failed: Waiting failed: 3000ms exceededPuppeteer configuration
No response
Puppeteer version
19.6.3
Node version
16.19.0
Package manager
yarn
Package manager version
1.22.19
Operating system
Windows
The text was updated successfully, but these errors were encountered: