Hi
I need your help. I want to check if the UI element available in the list or not . It is a java based application in my desktop.
So which activity I have to use to solve this ?
Hi
I need your help. I want to check if the UI element available in the list or not . It is a java based application in my desktop.
So which activity I have to use to solve this ?
I use a “Try Catch” activity when I want to check if an UI element exists. In the Try (outlined in green) I place the activity that is looking for the UI element. In the Catches (outlined in red) I select “Browse for Types…” (circled in red) from the dropdown (circled in green) and I type in “Selector” in the next window that opens, this will give you two selections, I use the “SelectorNotFoundException” (outlined in red) If there are only two different possible UI elements it could be, I put the other Activity in the Catch sequence. see the screenshot below.
If all you want is to know if the selector exists you can setup the Try Catch this way, see screenshot.
You also can use the Element Exists activity: https://docs.uipath.com/activities/docs/ui-element-exists
It returns a Boolean value indicating if the element exists or not. Then, you can use this output to take an action or not, using an IF for example.
If this solves your problem and if you agree, kindly mark this post as solution to close this topic.
If you need extra help and/or have any questions, please let me know
Thanks!
Hello @Ma_athir_AL-Saidi ,
If you just want to check whether a Ui Element is present or not you can use Element Exists activity? Is there any challenge to identify this element?
Check whether the below doc can give some insight.
Hey @Ma_athir_AL-Saidi,
If you are working with Java based tool, kindly make sure java bridge is enabled in your machine and than use element exists activity to check whether the element exists or not.
Thanks,
Sanjit Pal