How to test fast changing items?
Hi, so this is the scenario.
There is a search box that user keys in stuff to. This then fires an API request and the text "Searching..." is shown while request is pending. The text then disappears (removed from DOM) when the request is finish. I would like to test that this text does show up.
Pseudo code:
TextboxSearch.Keys("apples") #Line 1 CheckProperty(obj, "contentText", cmpEqual, "Searching...") #Line 2
The request response is really fast but slow enough that user still sees the "Searching..." text. The problem I'm having is that TestComplete (TC) is "slow" and seems like line #2 is not yet executed by the time the text disappears after finishing searching for apples and so the test fails.
I have also tried executing the property check first with Runner.CallObjectMethodAsync() then do the keys but it does not work with TC methods as stated on the documentation.
Any ideas?