I am working on a project that requires me to indicate a picture in a webpage that is apparently less than 33x33px, so the CV screen scope cannot capture that.
I was planning to use “element exists” activity to indicate the presence of this button, however, the current version of UiPath Studio doesnt seem to allow me to use element exist activity on its own. Is there a way I can indicate the presence of a button smaller than 33x33px ???
Image is attached as a reference: the arrow highlighted is the button I want to indicate.
Please try using the Find Image activity to indicate the presence of a button smaller than 33x33 pixels on a webpage. This activity allows you to search for an image within a specified area of the screen.
thanks for the answer. It seems to work fine, however, the output is an UIelement and I would like to make the output to a boolean value, and then pass it on to a while loop. To do this, should I use assign activity or what?
You can use the following expression to derive a boolean value in order to drive decisions in the loop further:
imageFound = (foundImageElement IsNot Nothing)
This expression will assign True to imageFound if the foundImageElement is not null, indicating that the image was found. Otherwise, it will assign False.
Hi, thanks for the reply, I typed in:
“arrow isNot Nothing”, for which arrow is my element, but it gave an error, could you please help me out on this?
isNot Nothing is the checker expression that you can check in the If condition (like the boolean check performed on element exists), not in the assignment activity.
Seems like you are getting the collection of UI objects in the arrow variable. Please indicate the same again & make sure you are indicating a single entity. The data type of the variable shall be UiPath.Core.UiElement. If these changes are done, you can use the above condition in the While loop easily.
Hi, I made the changes but the error persists. However, when I type in “arrow != Null” it works fine, are they the same? can I replace this with “arrow != null” ?
Hi, is this enough?
I changed the Find image element a bit as I figured this would be more appropriate
also, when I try “arrow != Nothing”, an error gives saying that Nothing does not exist in the current context