There are 2 images on a page that have the same image src link. If i use the following code it will click the first image, so how do I click on the second image?
browser.image(:src, "https://itc.mzstatic.com/itc/images/btn-grey-small-edit.png").click
You need to either capture all images, and click the second one
or specify the index of the image (index starts at 0 for watir-webdriver, or 1 for watir):