Limiting visualVerify search area

Hello!

In one of my automations I’m looking to use the visualVerify command to verify that the color of a certain element is red before going to the next step in the automation. I want the program to visually search within a small, limited area of the webpage. Is there any way I can do that?

I’m quite new to coding, which is why I’m asking this obviously :slight_smile:

Thanks a lot in advance!

(1) To define the x/y from where to get the color value, use XClickRelative. The green frame marks the anchor area, and the middle of the pink frame sets the value ${!imageX} and ${!imageY}. These are the input values for visualGetPixelColor.

(2) Then, to actually get the color code, use visualGetPixelColor | ${!imageX}, ${!imageY} <= This takes the x/y from #1 as input.

image

I want the program to visually search within a small, limited area of the webpage. Is there any way I can do that?

As shown above, you do not need to limit the area just for extracting the color value of a certain area. But, if you want to limit the area, the commands for that are visionLimitSearchArea and visionLimitSearchAreaRelative