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
Accessing to the 'visible' property of the Selector shouldn't interrupt a test execution #2386
Accessing to the 'visible' property of the Selector shouldn't interrupt a test execution #2386
Comments
@LavrovArtem By when do you think this issue would be addressed? In the mean time is there an alternative way to work around this? How can I contribute? |
Hi @noamaankhan We cannot provide you with precise time estimation. If this feature is important for you, the pull request would be appreciated. For more information, refer to the Contribution guide section in our documentation. |
I may be interested in providing a PR for this. I'm struggling with this issue due to a loader element disappearing after an Basically the following: function waitForElementToDisappear(selector) {
while (maxPollingChecksEtc && await selector.exists) {
--- element disappears here ---
let invisible = !await selector.visible; // test ends because visible depends on element existence (not sure why it does!)
if (invisible) break;
await t.sleep(pollDelay)
}
} In my opinion, an element that does not exist is not visible - and calling If backwards compatibility is a concern, perhaps some |
@SacredSkull |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
See example to reproduce
The test will interrupt with message 'Cannot obtain information about about the node because....'.
If I will change the
await dummySelecotor.visible
toawait dummySelecotor.exists
it works as expected.The text was updated successfully, but these errors were encountered: