UI自动化与MSAA

编程入门 行业动态 更新时间:2024-10-28 11:22:36
本文介绍了UI自动化与MSAA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在为自定义控件实现UI自动化。我已经实现了所需的激励器,但问题是,CUIT的Builder和Replay功能 - Builder搜索MSAA-Attributes而不是"UI Automation"-Attributes。 (如果您í nspect带有"检查对象"的程序,您可以选择是否要查看"MSAA"-Attributes或"UI Automation"-Attributes)

是否有可能告诉记录/重放事物搜索UI自动化 - 属性或设置MSAAA属性是否正确?!

提前致谢! Claus

解决方案

您的自定义控件的基础技术是什么?编码的UI测试默认使用MSAA进行winforms控件和UIA进行WPF控件。这是根据控件的类名决定的。

今天无法明确指导编码UI测试的可访问性路径(MSAA / UIA)。

I am implementing UI Automation for custom controls. I already have implemented the needed proviers but the problem is, that the Record and Replay function of the CUIT - Builder searches for the MSAA-Attributes and not for the "UI Automation"-Attributes. (Ifyou ínspecta program with "Inspect Objects" you can choose if you wanna see "MSAA"-Attributes or "UI Automation"-Attributes)

Is there a possibility to either tell the record/replay-thing to search for the UI Automation - Attributes or to set the MSAAA-Attributes correct?!

Thanks in advance! Claus

解决方案

What is the underlying technology for your custom control ? Coded UI Test uses MSAA for winforms controls and UIA for WPF controls by default. This is decided based on the class name of the control.

Today it is not possible to guide the accessibility path (MSAA/UIA) for Coded UI Test explictly.

更多推荐

UI自动化与MSAA

本文发布于:2023-11-07 08:56:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566035.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:化与   UI   MSAA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!