Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果您已经在基于 wpf 的 Windows 应用程序中工作过,请告诉我
我的查询是如何从 qtp 中的 WPFGrid 控件中检索对象。进行间谍活动时,qtp 仅识别 WPFGrid 并注意其中的对象。请为此建议解决方法
WpfWindow("title").WpfTable("title")
wpftable 内部有四列和一些行。第一列包含复选框。我想选中/取消选中它。对象间谍无法识别 wpftable 内的任何内容
问候
如果是,您想对 CheckBoxes 执行操作,而不是您需要
WpfWindow("title").WpfTable("title").WpfCheckBox("index:=0").Click
窥探复选框并检查属性。