Hi all,
APPIUM on ANDROID is the focus.
I have a scenario to be automated . Below is the scenario:
1. Swipe from top to the bottom.
2. Each tile has an index such as 0,1,2,3,4 and so on.
3. 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[1]"));
index.click();
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);
sel.selectByIndex(2);
But this also failed.
Can anyone help me out in resolving this issue?
I have to click on the element using its index.
Regards
Tejesh
created
Jun '15
last reply
Aug '18
- 4
replies
- 1.6k
views
- 4
users
- 2
links