在新开发的扩展中过滤层次结构 [英] Filtering hierarchy in newly developing extension

查看:66
本文介绍了在新开发的扩展中过滤层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Coded UI Test构建器中,我看到在控件上放置十字线时的一些层次结构。此层次结构与我们在使用GetParent()导航时看到的层次结构不同。有人可以帮助我了解中间父母是如何过滤的吗?导航到某个级别后,我在面对
问题时获得了祖先。

In Coded UI Test builder, i see some hierarchy when cross hair is put on a control. This hierarchy is different from hierarchy that we see when navigated with GetParent(). Could someone help me in knowing how intermediate parents are filtered? I am facing problem in getting the ancestor after navigationg to some levels.

我看到父导航工作正常,但问题在于层次结构与十字线有关在左窗格中的编码ui测试构建器中。

I see Parent navigation is working fine, but the problem is with hierarchy that is seen with cross-hair in coded ui test builder on left pane.

请告诉我中间父母是如何过滤的?过滤层次结构的基础是什么?

Please let me know how intermediate parents are filtered? what is the basis that is considered to filter the hierarchy?

 

问候

-Nagababu

-Nagababu

 

推荐答案

当您使用GetParent()方法时,它导航到其Imediate Parent Only。

When you are using GetParent() method its navigating to its Imediate Parent Only.

在编码的UI编辑器中,您没有看到Imediate父级,VSTS识别出最佳的可搜索容器,以便快速搜索控件尽可能。

In Coded UI Editor you don't see a Imediate parent, VSTS identifyies best Searchable Container to search control as fast as possible.

因此您会发现结构上的差异

Hence you find a difference in structure


这篇关于在新开发的扩展中过滤层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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