Questions tagged «ui-automation»

2
UI Automation的Google Chrome浏览器可访问树缓存问题
当用户在浏览器中向下滚动时,Google Chrome不会刷新可访问性元素(AutomationElement)。 要重现它: 使用"chrome --force-render-accessibility"或通过在上设置全局可访问性启用渲染器可访问 性"chrome://accessibility"。 前往http://en.wikipedia.org/wiki/Google 在UI自动化模式下(从Windows Kits中)打开inspect.exe,查找“到相关文章的链接”元素。 返回Chrome,向下滚动直到底部的“相关文章链接”可见 屏幕上标记了“到相关文章的链接”元素 我找到了一些手动的解决方案,它们可能会迫使Chrome刷新它: 将“缩放”设置为90%,然后将其设置回100%(非常难看) 关闭辅助功能,然后再打开 chrome://accessibility/ 我要寻找的是能够以编程方式执行这些操作之一的功能,或者能够使Chrome刷新其缓存树的任何操作。 我试过的 调整窗口大小 PInvoke/MoveWindow 重绘窗口 PInvoke/Redrawwindow 构建chrome扩展程序,并根据需要强制缩放到100%:(可以chrome.tabs.setZoom(null, 0);工作,但要眨眼并放慢窗口速度) 这些都不正常。 编辑:在Windows 7下使用Google Chrome 40.XX,41.XX,42.XX,43.XX,44.XX,45.XX,46.XX,47.XX.Dev,48.XX.Dev进行了测试。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.