I’m testing an Android app and on several pages, an Android spinner (android.widget.ProgressBar) can spin for 1-20 seconds. All of the elements on the page are visible and are enabled, but if I try to click on an element while the spinner is still present, the script fails because the element doesn’t really get clicked. (On these pages there’s user information being downloaded, but not being displayed). The status of the elements on the page don’t change when the spinner finishes, but this Spinner element (id=progress_spinner) is no longer present.
Anybody have a suggestion on how to best handle a situation like this? I guess what needs to be done is wait until the spinner element is no longer present before continuing the script. My setup is:
Appium 1.5.3
Appium java-client 4.1.2
Running on a Mac (10.11.4)