How to assert spinner is present #3104
Unanswered
AlaaSayed794
asked this question in
Help Needed
Replies: 2 comments 1 reply
-
In situations where the element might be visible to short duration, it is better to set a attribute on the element that indicates the state change and test for that attribute. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe this isn't what you want but I do a .waitForElementPresent() then a .waitForElementNotPresent() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On page load. There is a loading spinner that I want to assert is shown before results are fetched.
It is always giving not present after performance update by our developers. I can still see it showing but nightwatchjs cannot.
How to solve this?
I even tried creating my own custom command that uses setInterval and document.query
But it seems like it is defined before the load is done.
I tried asserting in browser.refresh callback but I get the same behaviour .
I've been stuck for a while. I'd appreciate it if someone could help.
Beta Was this translation helpful? Give feedback.
All reactions