Image Exists targeting to all image in 1 folder


Someone help me please, i want to set the image target to all image in 1 folder. What VB expression should i use for targeting? Thankyou

@Albert_Lius

Welcome to the community

if you need multiple then follow these steps

  1. Use For loop with Directory.GetFiles("FolderPath","*.png")
  2. Inside loop use load image with currentitem as the path and then use the image output in the next activity
  3. Use image exists and pass the output of step 2

If image found then break the loop using if condition else continue the loop for all images

cheers

Image Exists doesn’t look for images in a folder. It looks for the image to be showing on the screen. And by image it doesn’t mean an actual JPG etc, it just means it can identify something on the screen visually.

That will still only look for the image onscreen, it doesn’t determine if an image exists in the folder.

@postwick

does he need all images in folder to be searched on some target?

that was my understanding…if not you are correct we cant target to images in folder with image exists

cheers

1 Like

I’m not really sure.

@Albert_Lius can you give us more detail on exactly what you’re trying to do?

Are you looking to see if a particular image exists in the folder? Or are you trying to look through a folder of images and see if any of them are found on the screen (ie on a web page that’s open, inside an app that’s open)?

Ok sorry for not giving the detail, so the detail of my case is i want to make a condition if the profile picture in instagram is match with the all image assets in my folder then if the image is exists i want to click to the image in the instagram. Please kindly help, thankyou

@Albert_Lius

Then open the profile picture on instagram in browser and then perform above steps…it wpuld compare each image with instagram
Image

Cheers

its work for me!! thank you so muchh

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.