I’m doing Appium for Android and I know how to find elements using scrollIntoView().
The table I have is like this:
(2)TableLayout
(0)TableRow
(0)LinearLayout
(1)LinearLayout
(0)TextView:Tom
(1)TextView:OPEN
(2)TextView:OPEN
(1)TableRow
(0)LinearLayout
(1)LinearLayout
(0)TextView:Jack
(1)TextView:OPEN
(2)TextView:OPEN
As I mentioned above, I can locate (0)TextView with the text “Tom” and the id. However, what I want is to locate (1)TextView and click it. Are there any ways to do it?
I’m looking for something like:
MobileElement tom = the (0)TextView I located;
MobileElement target = tom.findElement(__);
target.click();