Error: The UiElement is no longer valid

citrix

#1

I use send hotkey activity to an application in Citrix but on random occasions I get the error “Send hotkey ‘wf32.exe’ : The UiElement is no longer valid”.

According to replies under similar topics, it is related to the caching issue and it is also suggested that preferable don’t use selectors within Send Hotkey activity. However, I thought target properties or scope is required for a send hotkey activity.


#2

Hello!

There’s no need to have a target property to use a “Send Hotkey” activity. Just put it on your workflow withouth selecting a target and it will work fine.

Example:

image

Hope It Helps

Regards,


#3

I thought target properties or scope is required for a send hotkey activity.

Same here, At least until 2016.2 i was thinking it would either require having the send hotkey inside an Attach to window/Browser or having a target property set.

On the other hand i do remember reading some release note mentioning about such a change to do not make it required to have target but cannot find it…

Is it officially changed in 2017.x ?

Cheers.


#4

Check it out this other topic about the same question:


#5

Found the release note.


However I still get this using CE 2017.1.6309 in home (5 months old)

image

On my 3rd pc with the latest release installed the activity works fine without Target.
So @ss.sl you can try to install the last version.

Cheers


Hotkey exception