Take it from the Top

uiautomation

#1

how to make Uipath search for the image downwards (from the top of the screen to the bottom)> because there is more images and they are the same so I want just to pick the first one at the Top @vvaidya
@Vlad
@badita
@Cosin


#2

Search for the image for a specific time out and send hot key “page down” and do the same till you find the image.

Is this what you are looking for?


#3

I think I wasn’t clear enough,All the images are already existed on the screen (they are similar of course), I just want to pick the one that at the top,not that at the middle or the one at the bottom
@vvaidya


#4

can this be done using selectors(image name) or you have to read image only?

If selectors,

1)you can inject dynamic names into selector and search till you find the image

  1. you can do data scraping to get image and url into a table and do for each loop till you find the image.

#5

@vvaidya
not I can’t use selectors here


#6

The. I guess you have to use the below, by selecting specific ranges on screen and if not found move to next.

Ps: there might be better solution which I’m not seeing.

Target.ClippingRegion

Defines the clipping rectangle, in pixels, relative to the UiElement, in the following directions: left, top, right, bottom. It supports both positive and negative numbers, and only Region variables.


#7

Thanks @vvaidya
but I can’t depend on that, I need something like > make uipath just choose the first image,he can recognize all of them so I just want it choose the first from the top to the bottom.


#8

Similar to data scraping, not sure if Uipath has something similar for images.

Some others might be able to help. Good Luck!


#9

In the meanwhile check this


#10

@Hazem i tested the above solution, it clicks all images on screen but “Randomly” and not from top.


#11

Hello Hello :slight_smile: @vvaidya
after your last replay I did test it,too and actually it worked to me.