I am using the activity “On Element Appear” in parallel with some type intos to catch an adobe pop up window. When the window appears, the robot is supposed to immediately click on the “ok” button within the “On Element Appear” activity to close and continue. Instead what happens is the “On Element Appear” will catch that the window has opened, and then the click activity will freeze up and do nothing for 30 seconds until the adobe pop up window flashes and then the bot clicks to close. I have tried a 5 second timeout on the click, I have added delays before, wait until ready, deselect on finish as well as using a different activity such as “send hotkey” to just press enter and hit the ok button that way. My question is how can I make the click happen as soon as the warning window pops up instead of having it wait 30 seconds? I have also found that the last activity to go after the error does not get input.
Hi,
Do you have an exception?
if not, for now can you try to set None at WaitForReady property of Click activity?
Regards,
Hi,
I have tried setting the click to none and nothing changes, I disabled continue on error and it throws “RemoteException wrapping System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))”
Thanks
Hi,
Thank you for trying.
Does the Click activity throw 0x80070005? Hmm…I’ve never faced this…
If you try to click it using Click activity alone (not inside OnElementAppear activity and Parallel activity), does it work?
Regards,
Hi again,
I found that if I commented out the click it would actually throw that error from the next “type into” activity in my sequence, which means it was not even the click causing the error. I have just found that if I have a click after the type into, causing adobe to throw the pop up before moving to the next type into, it will work just fine. So now I need a quick way to deselect the field without causing a huge time loss (and I cannot use the deselect field check box on the type into as I cannot use simulate type). Also just adding a new click activity every after type into is not a great option as I have hundreds of type intos and need to optimize to be as quick as possible, and even adding a general window click will slow it down. Any suggestions on that would be appreciated!
Update: I found adding “[k(tab)]” does what I need it to, but fails in another category. While the window often does get closed, it seems the parallel causes other type into activities to run first, and they will attempt even when set to waitforready.Complete. This could cause many fields to not get updated as they will just be typed into nothing when the pop up is visible. My problem has shifted from needing to find the window to close it, to needing to find the window the instant it pops up no matter what while stalling my other activities from trying to run.