无法使用编码的UI测试构建器捕获工具提示文本?如何捕获工具提示文本? [英] Not able to capture the tool tip text using coded UI test builder ? How to capture the tooltip text ?

查看:80
本文介绍了无法使用编码的UI测试构建器捕获工具提示文本?如何捕获工具提示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要捕获工具提示文字。

I need to capture the tool tip text.

只有当鼠标悬停在右边附近时才会显示工具文本文本框的顶角。

Tooltiptext will display only if you mouse hover near the right top corner of the textbox.

我无法捕获并将其添加到UIMap,因为如果移动鼠标,对象将不会显示。

I am not able to capture and add it to the UIMap since the object will not display if you move the mouse.




请参阅截图以了解问题。

Please refer screenshots to understand the issue.

我尝试了以下方法。

  WpfCustom dtt = UIMap.UIEquipmentFleetAdminiWindow.UIItemCustom.UICpntractMaintabMenuTabList.tabTermsandparties.UIScrContractMainPane.UITermsParties_dtpValiCustom;



            var k = dtt.ToolTipText;

 WpfCustom dtt = UIMap.UIEquipmentFleetAdminiWindow.UIItemCustom.UICpntractMaintabMenuTabList.tabTermsandparties.UIScrContractMainPane.UITermsParties_dtpValiCustom;

            var k = dtt.ToolTipText;

但没有任何作用。

错误消息:

请建议任何解决方案。




推荐答案

朋友,

感谢您的帖子。 

Thanks for your post. 

保留UIMap编码的UI测试构建器打开,将鼠标光标放在文本(工具提示)," Ctrl" +" i",
然后它'将被捕获​​。 

Keep the UIMap-Coded UI test builder on, put the mouse cursor on the text(Tooltip), Press"Ctrl"+"i", then it'll be captured. 

 

祝你好运, 

Best regards, 

Fletcher 

Fletcher 


这篇关于无法使用编码的UI测试构建器捕获工具提示文本?如何捕获工具提示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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