So right now I'm trying to use .element to search for all the images on the page and then to check if a specific image is on there. I'm attempting to achieve this through the use of .elements to find all the ImageView elements on the page and then running all the found elements through a for each loop to check if it matches the resource-id of the image I'm looking for.
But for some reason I can't seem to get the condition to work. I think the problem is with the way I'm the Webdriver.io protocol, elementIdAttribute. I've tried looking at the documentation on webdriver.io but I can't figure out if resource-id is a attribute or property and how I'm supposed to retrive it?
Aucun commentaire:
Enregistrer un commentaire