Yes you are right. Like as how we have in type into activity there is no property called alter if disabled in send hot key activity
In that case we can use
—get attribute activity where indicate that element and get the attribute called aastate and save that value in string variable named strinput
—now use a IF condition like this Strinput.ToString.ToUpper.Contains(“ENABLED”)
IF true it goes to then block where we can keep the send hot key activity with the key you want or it goes to Else block
This is one way
Second option is in SEND HOTKEY ACTIVITY itself there is a property called WaitForReady where choose as NONE so that it won’t wait for the target to element to load
And also set as true in CONTINUE ON ERROR property so that even if the element is disabled activity won’t fail and continue further
WaitForReady was not the solution. It was tested in version 20.4 by mistake.
Is there a way to downgrade the 21.10 to 20.4 version without broken the activity?
Hi
The program I try to use now is the Oracle application, it is strange.
Even though all loading is completed and activated, ‘alter if disabled’ error occurs.
For those who have the same problem as me, please refer to it.
When downgrading from 21.10 to 20.4, activities such as InvokeWorkFlow and CommentOut were broken.
I knew that both UIAutomatin.Activities and System.Activities needed to downgrade the version.
But System.Activities keep the version, and only UIAutomatin.Activities downgraded.
Surprisingly, Activities were not broken, and SendHotKey worked without error.
FYI, it’s because SendHotKey is included in UiAutomation.Activities. On the other hand, InvokeWorkflowFile and CommentOut are included in System.Activities. So we need to downgrade only UiAutomation in this case.