You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to wait until all elements for a matching locator disappears. Is this possible?
constlocator=page.locator("input");awaitlocator.count();// 12// wait until there are no <input>awaitlocator.count();// 0
EDIT:
I solved it by doing this but it feels quite hacky and ugly. Also I would need some timeout so it doesn't end up in an infinite loop? Is there a nicer way?
while(awaitspinners.count()>0){}
The text was updated successfully, but these errors were encountered:
I need to wait until all elements for a matching locator disappears. Is this possible?
EDIT:
I solved it by doing this but it feels quite hacky and ugly. Also I would need some timeout so it doesn't end up in an infinite loop? Is there a nicer way?
The text was updated successfully, but these errors were encountered: