Google Chrome does not refresh accessibility elements (AutomationElement) when a user scrolls down in the browser.
To reproduce it:
- Enable renderer accessibility with :
"chrome --force-render-accessibility"
or by setting on Global Accessibility at"chrome://accessibility"
. - Go to http://en.wikipedia.org/wiki/Google
- Open inspect.exe in UI Automation Mode (from Windows Kits), look for "Links to related articles" element.
- Come back to Chrome, Scroll down until "Links to related articles" at the bottom is visible
- "Links to related articles" element is marked off screen
I found some manual solutions that can force Chrome to refresh it:
- Set Zoom to 90% then set it back to 100 % (very very ugly way)
- Switch accessibility off then switch on in
chrome://accessibility/
What I'm looking for is the ability to do one of these operations programatically, or any operation that can make Chrome refresh its cache tree.
What I've tried:
- Resize window with
PInvoke/MoveWindow
- Redraw Window with
PInvoke/Redrawwindow
- Build a chrome extension and force zoom to 100% on demand:
chrome.tabs.setZoom(null, 0);
(working but blink and slow down the window)
None of these are working properly.
EDIT: Tested with Google Chrome 40.XX, 41.XX, 42.XX, 43.XX, 44.XX, 45.XX, 46.XX, 47.XX.Dev, 48.XX.Dev under Windows 7.