Hey guys,
I feel like I am missing something completely fundamental to the scrolling capabilities within Appium. I am aware that scrollTo and scrollToExcute has been depreciated; and while those never really solved my problem, they were the closest I have been without having to over complicate my scrolling logic.
In essence, I am simply trying to navigate a scrolling UIATableView, until my element is visible on the screen, without having to specify whether I need to swipe up or down; as I cannot always guarantee that my object will be above or below my current location. I would just like to “jump” to it.
What I find odd about the entire thing is, I can execute a sendKeys("") on my target cell’s By object, and will have no problems with “jumping” to the desired cell, regardless of up-scroll/down-scroll, off-screen/in-view. However, while the location behavior is exactly what I’m looking for, doing this also results in tapping the cell, leading to a details view, which is not what I am intending to do. Rather, I am trying assert the summary details listed within the cell, without having to tap on it.
I have tried a few different methods without success. These include “mobile: swipe” or scroll, scrollTo, scrollToExact (which sounds super promising), scrollIntoView(true).
While I have seen some indicate success with scrolling until objects are visible, I struggle with this idea, due to the amount of logic and test-run-time required to traverse the entire table, then determine if driver is at the bottom of the table, then navigate back to the top, only to scroll all the way back down.
Any thoughts are greatly appreciated.