I am using Page Object Model (POM)for automating an application
I have identified elements using @FindBy
annotation which has List of elements. Now, I want to iterate through all the elements. How can I do that.
I am using Page Object Model (POM)for automating an application
I have identified elements using @FindBy
annotation which has List of elements. Now, I want to iterate through all the elements. How can I do that.
Create a string array with the list of xpaths. Loop through the array and pass the xpath at (i) into the Find by variable.