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.
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.