This repository has been archived by the owner on Jan 30, 2025. It is now read-only.
elementHandle.isVisible should return straight away even if the selector was not found #981
Closed
9 tasks done
Labels
Brief summary
Currently when we work with
elementHandle.isVisible
it will wait and try to match on the given selector before returningtrue
orfalse
on whether it is visible or not. To match Playwrights behaviour, and the expectations of our users, we should change the behaviour to return straight away even if the selector is not present in the DOM.xk6-browser version
v0.45.0
OS
NA
Chrome version
NA
Docker version and image (if applicable)
NA
Steps to reproduce the problem
elementHandle.isVisible
and set the selector to something that will not be present on the page that the test navigates to.Expected behaviour
It should return
false
straight away.Actual behaviour
It waits for the selector to match, but eventually times out.
Tasks
The text was updated successfully, but these errors were encountered: