Hi,
I am using Appium 1.6.0 and XCUITest automation name and I am trying to check if the first visible cells have a given property.
The issue is that my table view is paginated - this means that when
open func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath)
is called for the last cell in my data set I make an API call to load more data, even though the table isn't scrolled at all.
I use the following approach to retrieve the elements:
@iOSFindBy(accessibility = "MyCellAccessibilityId")
List<MobileElement> cells
The problem is that Appium or WebDriverAgent triggers open func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) and there fore the data pagination and the list retrieval of cells takes forever.
Is there a way to prevent Appium to trigger open func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) and query just for the visible cells?
On Android the exact same approach doesn't trigger the data load.
Thank you,
Cosmin