question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] elementHandle.waitForSelector followed by elementHandle.waitForElementState

See original GitHub issue

waitForSelector could be followed by a waitForElementState to e.g. make sure that an element is not moving, using the stable state.

Is this always the required workflow to achieve this, or was there ever an idea that waitForSelector could also somehow wait for the element to become stable?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thernstigcommented, Oct 20, 2020

I think this was more of semantics i.e. is it a good idea for waitForElement() to be able to wait for something to be stable. I.e. in a screenshot scenario.

0reactions
pavelfeldmancommented, Jul 12, 2021

I’ll close this as a part of the bug triaging process. We have hundreds of bugs and feature requests with dozens and even hundreds of upvotes, while this one only has a few thumbs up. Please feel free to open a new bug and link this one if you’d like to see it addressed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ElementHandle | Playwright
The method finds an element matching the specified selector in the ElementHandle 's subtree. If no elements match the selector, returns null ....
Read more >
Looking for a child element within ElementHandle with waitFor
It seems you need not Object.values​​() for the docsPanels : it is an array and you can iterate over it as is. You...
Read more >
Use waitForElementState in Playwright Internal With Examples
Learn how to use waitForElementState function in Playwright Internal framework for your next JavaScript automation project with LambdaTest Automation ...
Read more >
Playwright changelog - Awesome Node.js - LibHunt
#2974 - [BUG] Unable to adopt element handle from a different document #3122 - [QUESTION] Chromium versions are mismatched in docker, leading to...
Read more >
ElementHandle.waitForSelector() method - Puppeteer
waitForSelector (), this method does not work across navigations or if the element is detached from DOM. Signature:​. class ElementHandle {
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found