Hi All,
I am trying to select something from a list using class name as ID isn’t available.
The problem I have is that on this page there are 7 options. They all have the same class name! “android.widget.RelativeLayout”. I noticed they have an index that goes in order for 1 to 7.
Currently I have this:
WebElement anotherproblem = driver.findElement(By.className(“android.widget.RelativeLayout”));
While it works it doesn’t click the specific option on the page I want. Is there a way I can tell it to click #1 in the list?
Thanks!