Due to a certain system we use, which is most stable with Chrome, I had to automate a whole lot into this browser with extension.
After 5 months with stable code, the basic “open browser” seem to suddenly fail me. This is particulary bad since it’s the base of all automation within our online system.
Summary:
Open browser Chrome, suddenly stays in background so selectors won’t work.
If I manually click anywhere before TimeoutMS - all the selectors work.
Once chrome is manually brought to foreground - everything works perfectly.
By being in the background I mean the icon is orange, the login page is still in foreground visually.
I’ve tried workarounds such as “Activate”, “Maximize”, Minimize" etc. with little to no effect. I’ve even tried to send hotkeys to manually force chrome to the foreground.
Any solutions?
Tl;dr
I need Open Browser to open Chrome actively - not just visually with blinking orange icons.
Note that all the code works fine, except the open browser which had first error yesterday. It works if Chrome is already active (session running before Open browser - enable/disable new session has no effect) or if I click somewhere in the background.
Thought to check if updating remaining Activities could solve it - got an error.
I am not sure if this is related to the most urgent issue with Chrome not being forced to foreground/workable. Would still be glad to fix this issue aswell.