I am using the pick activity pretty often (after a nice introduction by a UiPath Pre-Sales-Engineer ) and after a few rounds of trial and error I felt like I got the hang of it.
Unfortunately I ran into a weird issue:
I build the following pick with 2 pick branches:
The Pick triggering works just as expected.
- Pick Branch 1 Trigger (Find Element) gets started
- Pick Branch 2 Trigger (Get Text) gets executed
- Pick Branch 1 Trigger completes (Element was found)
- Pick Branch 2 Trigger gets canceled (Get Text gets canceled)
- Pick Branch 1 Action gets executed and Pick is finished
Strangely between Step 4 and 5 there is a 30 second break (it even shows in the JSON-Output entries), which is exactly the timeout for the “get text” activity. I can also shorten the break by shortening the timeout of the “get text” activity, so the direct connection is definetly there.
I just do not understand why the timeout of the “get text” activity needs to finished before the pick can continue, since the activity gets canceled.
I do not have this issue when I use another “find element” activity. But I had the same issue with a “get attribute” activity.
To understand my use case:
(shortened) When loading a form in SAP either a popup shows up (Notiz-Branch) or a message in the message bar gets shown.
Since the message bar element is always there but either its text is “” or “xyz”, I cannot use “Find element” on the second Branch.
Does anyone know this issue and can help me fix it?
Is it an SAP issue?
Are the “Get xxx” activities not set for being canceled in a pick branch?
Does anyone know a workaround or alternative activity?
Thanks for your help.