I am not able to click all the elements of an array list.Please find the below code:-
elementlist = driver.findElements(MobileBy.xpath("//android.widget.TextView[@text=‘ABC’]"))
elementcount = elementlist.size()
for (def i=0; i<=elementcount; i++)
In the above code the elementcount is 2. I am able to click the element only once.
The code get stuck at elementlist.get(i).click() in 2nd attempt. It does not go further.
Can someone tell me what is the reason that code is not getting executed 2nd time?