First, my workaround: Parallel Sequence that Sets Focus to the popup, with a 6 second delay before Focus, then Clicks Allow without using SendWindowMessages or SimulateClick.
Funnily enough, I don’t have this problem on my development computer but on the virtual machine where my bot runs. It makes me second guess myself that there is some setting difference between the two machines that could prevent this issue. This is what I’ve discovered about the problem:
-The “Send Outlook Mail Message” activity will not stop, not even with a 2 second timeout put on it (I was hoping to use the try-catch to force it to move to the “Click” activity).
-Using the parallel activity is a step forward, but this security message has some issues with it
-The security message will not accept “Simulate Click” or “Send Window Messages”, the “Click” activity will not even error out, but report that it clicked successfully.
-The security message does strange things with the “Send Hotkey” activity. Tab and arrow hotkeys will not navigate to the “Allow” button
-I know using the 6 second delay isn’t best practices, but the “WaitForReady” options don’t work correctly. It ends up clicking prematurely in ever scenario I’ve found without the delay.
I don’t understand the point of Element and Image Exist. If you think the element will somehow not appear, then set the parallel sequence activities to ContinueOnError = True
Let me know if you guys find any improvements on this workaround or a better fix.