This is a list of options that I need to choose. They are “disabled” and they become active when I uncheck the “all” button. The problem is there is a random delay between unchecking “all” and these options become active meaning that I need to make it so that studiox know when these items become “active”.
How do I set this? I tried to use check app state (image exist/element exist) however it does not work the automation continues even if these are unactive.
This is how it looks when the element is “active”
(sorry I had to blur the options however there is just a list of options to choose)
You can use the Get Attribute activity to check if that particular check box is checked or not.
Have a look at this thread, it may help you How to find which checkbox is checked
Indicate the elements in ui explorer when they are active and when they are not active and find the difference in selector and use that specific selector for active in the check app state activity
You have to use the Check App State activity and give the maximum Default timeout, if the element value will be changed before the timeout, the code will continue else you can throw an exception.
Open ui explorer…indicate the element first when it is greyed out…and then check the right top and bottom left menu values…repeat same when it is enabled and check if there are any differences
<Webctrl tag='xx' ........ aastate='value you see' />
Basically whatever selector you have add aastate like this and validate it when enabled it should be validated and validate again when disabled it should be failing the validation
In ui explorer… in the centre bottom window…you would have the selector coming up…in that selector you have to add the aastate as well and use that selector in your check appstate…from propwrties of check appstate you can edit selectors