Hi Descolada,
Chrome 138 introduced Native UIA Provider
which breaks unattended automation for
Chromium/Electron based apps.
ISSUE:
After page navigation in unattended mode,
new RenderWidget is created but accessibility
tree never initializes because window has
no real desktop focus.
EVIDENCE:
- Old RenderWidget: 919204
- New RenderWidget: 1639060 (after navigation)
- Children count : 0 for 30+ seconds
- WM_GETOBJECT : ignored without real focus
- Attended mode : works fine
ROOT CAUSE:
Chrome 138 changed from proxy-based UIA
to native UIA implementation.
Native UIA requires real desktop focus
to initialize accessibility on new renderers.
Reference:
https://developer.chrome.com/blog/windows-uia-support-update
POSSIBLE LIBRARY IMPROVEMENTS:
-
ElementFromChromium() could auto-detect
new RenderWidget after navigation and
retry activation signal
-
Add built-in retry loop for empty trees
after Chromium page navigation
Will like to know your thoughts on this..
Can you please create a small example on Chromium based application, i will share you example where i am facing issue. Please suggest something...
How to use:
- Rename file extension Youtube_Test.ahk
- You can use exact same script make sure of log folder and lib.
- Run it in Active window(Attended mode)
- Run it in Disconnected state(Unattended mode), for this you can create new RDP user and connect using that user, execute script it has 10sec delay then you can disconnect RDP session(don't signout else it will close Intercative session), reconnect session to see output..
- Check for Log and Dump files for difference in Attended and UnAttended mode
Youtube_Test.ahk.txt
I am having trouble with this since few week,, i hope you will be able to help me out..
Looking to hear from you...
Thanks
PIYUSH
Hi Descolada,
Chrome 138 introduced Native UIA Provider
which breaks unattended automation for
Chromium/Electron based apps.
ISSUE:
After page navigation in unattended mode,
new RenderWidget is created but accessibility
tree never initializes because window has
no real desktop focus.
EVIDENCE:
ROOT CAUSE:
Chrome 138 changed from proxy-based UIA
to native UIA implementation.
Native UIA requires real desktop focus
to initialize accessibility on new renderers.
Reference:
https://developer.chrome.com/blog/windows-uia-support-update
POSSIBLE LIBRARY IMPROVEMENTS:
ElementFromChromium() could auto-detect
new RenderWidget after navigation and
retry activation signal
Add built-in retry loop for empty trees
after Chromium page navigation
Will like to know your thoughts on this..
Can you please create a small example on Chromium based application, i will share you example where i am facing issue. Please suggest something...
How to use:
Youtube_Test.ahk.txt
I am having trouble with this since few week,, i hope you will be able to help me out..
Looking to hear from you...
Thanks
PIYUSH