Hello
I am still very new to this so my terminology might be wrong and thus far searching doesn’t give me good results.
I work on a project in a Citrix environment and a very basic problem I have is to double click on an UI element that might or might not be already selected.
For example, lets suppose I want to double click on an icon, but there is a chance that sometimes it may have additional colour tint if it was the last icon used before initiating the RPA.
My understanding is that it would be neat to provide 2 images, if one is not found, try the other.
Is this functionality already present?
I imagine it could be written in an UiPath sequence or a workflow that could be exported.
Is it possible to feed workflows with image arguments?
I really like the informative screenshots for activites inside sequences. Is it possible to add informative screenshots to imported workflows?
thank you for your inquiry and also because you provided good information in order to provide you with a better and complete answer.
You can use the citrix recording to find both images and then use an "if " activty.
My first approach will be to try to find the first image, then if not found try to find the second image.
Using the citrix recorder will give you the option to have a screenshot for each case, normally I would upload an xaml, but in this case I suggest you to try to achieve this yourself, if you need any help let us know.
Happy automation : if you found the answer of your question pleasae mark it as solved.
In the selection menu for the Image target, you can Grab from Screen, Save image or Load image. If you save the image you previously Grabbed from the screen, you can the load it in all the activities you are using. Also Find Image will return a UiElement object that you can then pass as input for other activities in the Element property from the Target section.