MSAA 找不到 winforms 控件 [英] MSAA Fails to find winforms controls

查看:34
本文介绍了MSAA 找不到 winforms 控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Coded UI 来自动化应用程序.在自动化过程中,应用程序内部发生了一个复杂的过程(在应用程序中加载 PowerPoint).在此过程之后,我无法继续测试,因为 MSAA 无法在应用程序中找到任何控件.我正在使用 Inspect.exe,在自动化失败之前和之后.我附上了故障前后检查工具的屏幕截图.有什么解决方案可以克服这个问题吗?每当遇到此问题时,我都无法在不重新启动应用程序的情况下继续进行自动化测试.任何帮助将不胜感激 !

I am using Coded UI to automate an application. In the automation process a complex process happens inside the application (loading a PowerPoint inside the application). After this process I can't continue the test because MSAA unable to find any controls in the application.I am using Inspect.exe, before and after the automation fails. I have attached the screen shot of Inspect tool before and after the failure. Is there any solution to overcome this issue? I can't continue automation testing without restarting the application whenever I face this problem. Any help would be greatly appreciated !

推荐答案

尝试在 Windows 设置中更改屏幕分辨率和屏幕大小.

Try changing the screen resolution and screen size in windows settings.

在 CodedUI 中遇到了同样的问题.检查工具在 msaa 模式下找不到控件更改屏幕分辨率和大小后,它能够找到控件.

Had the same issue in CodedUI. Inspect tool didnt find controls in msaa mode After changing the screen resolution and size, It was able to find the controls.

这篇关于MSAA 找不到 winforms 控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆