Hi,
I’ve read extensively through the forums and docs, but still can’t work out the best way to wait for a save spinner to disappear. I imagine this is something needed by most if not all developers.
My current test is thinking it’s clicking on things when sometimes those things aren’t clickable at the time. The elements are in the DOM, but are sometimes obscured by a semi-transparent DIV with a spinner icon.
I’ve seen various approaches discussed and have tried a few things:
- Wait X seconds (bad, because the time to save is affected by load)
- use “Is Clickable?” — seemed to think the element was clickable when it was not (at least not by real humans)
- use “Click until gone” — thought the DIV was gone when it wasn’t.
- I’ve read about Adaptive Wait, but as far as I can tell, it seems to not wait until an element exists/doesn’t exist, but rather wait X seconds and adjust what X is.
- I found this forum post on the exact thing from 2020 with a feature “coming soon”, but no updates: Wait until element is not present
- This forum post also talks to my issue and seems like it’s been resolved, but the embedded video no longer works so I can’t see what the support engineer came up with: Continue test as soon as element disappears
- The docs talk about “validations” (https[://]docs[.]testproject[.]io/using-the-smart-test-recorder/available-validations), but I can’t work out how to use them in a wait loop.
I’m using the web recorder if that helps.
What’s the best way in 2022 for TestProject to do this?
Thanks, Scott