I want to check if one button in app is active or not and with if activity to proceed further. The button is reconizable by UiPath (selector) but I see (there is no) no difference inside selector whether is inactive (in “grey” color) or active. Any clue how to solve this?
Thanks in advance,
P.S. I have already tried with ‘Get attribute’ activity but it has no discrepancy (path). I do not see anything opposite for which i can connect and throw an ‘if’ activity.
fine if we are able to identify with a color for that element whether its active or not then
we can use IMAGE EXISTS activity where choose that element when highlighted as a image and get the output with a variable of type boolean named bool_exists
–now use a if condition like this bool_exists = True
if true it will go to THEN part where we can use a message box as “ACTIVE in state”
hope this would help you but still GET ATTRIBUTE WOULD WORK FOR SURE kindly try with attribute like aastate or checked
If I understood correctly ‘Get attribute’ and then in Attribute field “aastate” and then as output i.e. “aastate1” (automatically saved as generic variable) and the with if activity asstate1 in condition
message box 1 “active” message box 2 “inactive”. It throws always active (I did step back when is active and when not). It does not work!
No, I just made with ‘Get attribute’ the path to the button which i want to test, than i wrote aastate in attribute field. Then I wrote variable aastate1 in output of ‘Get attribute’ activity and than I wrote aastate1 inside condition of ‘if activity’ with two possible message boxes. Message box 1 “Active” else message box 2 “Inactive”
Sorry i have no longer access to core system while company is now closed and i had to tirn off comp. (I am writing you now from handy) but i will send ,ou on Monday. Thanks for help! I am sure it only takes a one step more to do:-)
What I also did is that I made two get attributes (for case when button is active and one for non-active) with two different outputs. Then I compared two outputs and then i made two messages ‘They are the same’ and ‘They are differen’. They are always the same (no difference)
Can you check if the buttons have a Parent Element e.g. Pane. can you check here aastate and relativeVisibility attributes. Feel free to post a screenshot from the uiexplorer visual tree. Expand the elements around the button in a way to get an insight on what is surrounding the button.