Thanks for the response and all the suggestions!
The main problem I have is the macro group setting. I think what I have set is to make sure that the macro is only triggered when the front window/tab contains "keyboard maestro", which isn't working for me. When I switch tabs from google.com to KM, it means that active tab is KM and it should trigger it. And this is only not working when I switch tabs from Chrome. If I am switching from any other app to chrome, it worked flawless.
Yes the MidX and MidY stuff worked too.
I am using this to test features that I can use in other real pages that I am interested in. First I want to this macro to only be triggered in Chrome browser with title contains 'xxx', then I test if an image exists (both light and dark theme as we discussed in Find an Image on Both Light and Dark Themes - #12 by gglick), if image found, then click the center of the image and enter some text (the center of image is textbox) and then press enter.