I have a dialogue box that I can remove by hitting enter or clicking OK. The issue is that the click activity takes too long to click on OK ( I am using a simulate click ). I used a keyboard shortcut to hit enter, but it is also not working
It may be matter of Click activity etc. for showing this dialog.
For now, to isolate cause, can you try to set HardwareEvent in Click activity etc. for showing the dialog. (Please note that it’s not click activity for the button of dialog)
If it works, we can keep using HardwareEvent or can use Parallel activity to avoid this matter.
I think the root cause is the same. Dialog is run as sync, and it doesn’t return response. So Click for showing dialog or onLoad event wait until timeout, then do next action.
Can you try the following sample? And change InputMode of the first Click to ChromiumAPI or HardwareEvent. This helps the above.
Did you set it not Click activity for button of the Dialog but Click activity etc for showing the Dialog? (In general, it’s just before the Click activity for the button of the Dialog)
Also check the above post?
So what I understand from your suggestion is that I must select a hardware event before this click activity. And one more thing will the “enter” keystroke work after that?
As you mentioned, it’s true that UiAutomation 23.10 seems to wait timeout when getting selectors of the popup dialog in Studio as before version didn’t. Thank you for sharing. I hope it will fixed soon.