APPIUM on ANDROID is the focus.
I have a scenario to be automated . Below is the scenario:
- Swipe from top to the bottom.
- Each tile has an index such as 0,1,2,3,4 and so on.
- I have to click on a tile with any index 0 or 1 or any index available on the screen.
I tried using
WebElement index = driver.findElement(By.className(“abc.abc.abc//index”));
But the element was not located .
I also used the Select class
WebElement index = driver.findElement(By.className(“abc.abc.abc”));
Select sel = new Select(index);
But this also failed.
Can anyone help me out in resolving this issue?
I have to click on the element using its index.