calabash / calabash-android-server

Automated Functional testing for Android based on cucumber
Other
28 stars 41 forks source link

Adding stability in scrolling by introducing wait for element #118

Closed ManjunathaThimmaiah closed 1 year ago

ManjunathaThimmaiah commented 1 year ago

The uiAutomator method for scrolling and validating the element after scrolling is very unstable and flaky.

Scrolling on the screen and validating for the element happen simultaneously and the scrolling will continue even if the condition to validate the element is met, leading to flakiness.

There is not enough delay between scrolling and checking for the element that exists on the screen. Providing a little delay between scrolling and waiting for the element to exist gives stable and consistent results.