I have a UITableView that contains about 50 elements. At any moment, only 6 of them are visible on the screen. I want to select a cell that is not added to the table view, or say that I need to select the 25th item from the data list.
Now I use this method to push a cell in a tableview
wait.until(ExpectedConditions.visibilityOf(driver.findElementByAccessibilityId(element))).click();
But its not working as the 25th element has not yet been added to the view. Note that I am adding an accessibility identifier for the table view cell dynamically in code.
How can I do this job?
***** Added more ******
I have a table view cell displaying two text views. Short name of the currency and long name of the currency.
Let's look at an example.
GBP
UK Pounds
Now the accessibility identifier for this tableview cell is set as Pounds Sterling. Now i tried
driver.scrollTo ("GBP") and driver.scrollTo ("British Pounds")
Both did not work. I get an error
A element could not be located on the page using the Search parameter
Thanks.
source share