Solved! Go to Solution.
As mentioned, a LOT of this depends upon the type of grid. Without being able to examine the properties, it's hard to say. It MIGHT not be the actual grid you have to check. For example, is there some sort of icon or text or something on screen that says "loading" however briefly? Maybe you can check for that.
Hi,
The way exists for (almost?) all cases.
But exact implementation depends on the tested application type (web, desktop, ...), grid (OS native, or provided as control by some third party, or been not a read grid but its visual emulation in case of web, or ...), how grid is populated and so on.
As a posible approach: wait for the grid to appear, get its record number, wait a bit, get record number again and repeat the wait until the number of records stop changing.
As mentioned, a LOT of this depends upon the type of grid. Without being able to examine the properties, it's hard to say. It MIGHT not be the actual grid you have to check. For example, is there some sort of icon or text or something on screen that says "loading" however briefly? Maybe you can check for that.
Yes, like @tristaanogre said, check for the loading spinny icon on the screen
It is unfortunate that there is no event like "OnAjaxCallCompleted" or "OnJavascriptInjectionCompleted" that you can subscribe to to be notified when the injection to the grid is complete.
The way I have been doing it is find out the name of the "loading icon" for Ajax in the .NET app and wait on it to not exist anymore to keep going
Cheers
Lino
Subject | Author | Latest Post |
---|---|---|