I haven't worked much with window title / window name triggers but wanted to see if there was a way to select the button "Yes. It's me" when this window pops up.
Backstory: My company just started using Okta as a ID provider and it requires us to use some form or 2FA to login. The Okta Verify app seems to be the smoothest and when I login with a password in chrome it displays this prompt in a separate chrome window.
I know how to create a macro to click the button itself but not sure if i can trigger it when this window appears.
You might be able to use something like the trigger:Focused Window [Keyboard Maestro Wiki]
as your macro trigger. This means that your macro will run every single time a different window is focused on your Mac. You can then check to see if the window is focused that you want to target and continue, otherwise abort.
I wasn't crazy about something always running and looking for a window, page specific hot key seems like a good idea. I've done a lot of app specific hey keys but never page specific this is a great tip