I want to how can we extract the result of a “Click Image” activity. If a particular target image is not found then the click is not possible. In this case I want to take the boolean value whether the click occurred or image found or not using a boolean variable.
I know that this can be done in two step process but takes longer time.
Thanks for your idea. It completely makes sense to me. But,
When I place the find image activity inside the try catch block, it doesn’t catch the “SelectorNotFoundExecption” but it shows error “Activity timeout exceeded” and stops.
Find Image (and Find Element) returns “Activity timeout exceeded” if Robot cannot find target element in time. Thus, please catch by "UiPath.Core.Activities.ActivityTimeoutException".
Or, we can also use ContinueOnError property in Find Image. If set true, exception does not occur and judge if it’s found by whether FoundElement has value or not.