【问题标题】:How to get descendants of a panel in teststack.white如何在 teststack.white 中获取面板的后代
【发布时间】:2014-08-21 17:57:34
【问题描述】:

我需要一些元素是一些 3-4 面板的子元素,但在这些面板中我只能识别第一个父面板,其余的没有任何标识符,所以请帮我找到第一个的后代父面板。

假设 - Parent#1 只能被识别为“工作区”,但无法检测到直接子面板(Edit#1/Edit#2 和未知面板下的按钮被识别),所以我想进行编辑盒子,请帮忙?

【问题讨论】:

    标签: ui-automation white-framework


    【解决方案1】:

    试试这个

    1. 使用SearchCriteria 查找父 Panel1
    2. 在TeskStack.White.UIItem中使用GetElement方法:

    Panel1.GetElement(SearchCriteria searchCriteria)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-11
      • 1970-01-01
      • 2017-03-05
      • 2013-07-16
      • 1970-01-01
      • 1970-01-01
      • 2015-02-08
      • 1970-01-01
      相关资源
      最近更新 更多