Unable to scroll using EarlGrey scroll actions

422 Views Asked by At

I am unable to scroll on the initial state of a tableview. When reaching the page with a long table, I attempt to scroll down using scrollInDirection() but I receive an error (cannot scroll, scrollview is already at edge). If I perform a swipeUp() action and then attempt scrolling, I am able to scroll up and down with the same code. I cannot figure out how to scroll without the unnecessary swipe actions.

Code to scroll:

EarlGrey.selectElement(with: grey_kindOfClass(UITableView.self)).perform(grey_scrollInDirection(GREYDirection.down, 300))

Error received:

"NSLocalizedDescription" : "Cannot scroll, the scrollview is already at the edge"
0

There are 0 best solutions below