Python-UIAutomation-for-Windows icon indicating copy to clipboard operation
Python-UIAutomation-for-Windows copied to clipboard

请问 chrome 即使开启了 --force-renderer-accessibility 也可能获取不到 AutomationID, 怎么处理

Open goldWave opened this issue 4 years ago • 5 comments
trafficstars

chrome 启动命令行"C:\Program Files\Google\Chrome\Application\chrome.exe" --force-renderer-accessibility --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=SecurePaymentConfirmation 正常情况是这个样子的: image

在某些电脑上不能获取到控件的AutomationID image

请问需要怎么操作呢

goldWave avatar Sep 06 '21 08:09 goldWave

说明这个电脑上AutomationId就为空值,没法解决。 可以通过其它属性搜索,比如Name='密码'。 有的控件可能属性都是空值,没法直接搜索,可以先搜索它附件节点有确定属性的控件再间接获取, 假设这个密码控件Name也是空值,但它附近同级节点有登陆按钮比较好搜索。 可以 edit=window.ButtonControl(Name='登陆’).GetPreviousSiblingControl().GetPreviousSiblingControl().EditControl()

yinkaisheng avatar Sep 11 '21 01:09 yinkaisheng

你好,可以请教一下这个automation的可视化工具是啥,怎么获取吗

BuffFly avatar Nov 10 '21 08:11 BuffFly

你好,可以请教一下这个automation的可视化工具是啥,怎么获取吗

搜索 inspect.exe

goldWave avatar Nov 10 '21 08:11 goldWave

好嘞,谢谢

BuffFly avatar Nov 10 '21 08:11 BuffFly

你好,请问密码框如何输入文本的

rejii0042 avatar Jan 20 '22 06:01 rejii0042