本文介绍了如何在Kendo Application for Coded ui Testing中识别对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我无法使用Coded UI识别对象的组合框,因为该应用程序是使用Kendo开发的。

I am not able to identify the combobox for an object using Coded UI, because the application is developed using Kendo.

此对象没有任何特定属性,如无ID。这是我第一次使用Kendo应用程序,我不知道如何识别对象。如果页面上有2个表,则两个表都具有相同的名称。不确定
是如何使它们独一无二的,所以在运行测试时它可以识别所需的表格。 

This object does not have any specific properties like no ID . Its a first time i am working with Kendo application and i am not sure how to identify the objects. And also if there are 2 tables on the page, both the tables have the same name. not sure how to make them unique so while running the test it can identify the required table. 

任何人都可以给我一些想法或建议,这样我就可以运行我的测试。

Could anyone please give me some ides or suggestion so i can run my test.

谢谢

PV

推荐答案

如果控件没有ID,是否还有其他SearchProperties ? 也可以匹配确切的控制。

If there is no ID for the control, are there any other SearchProperties? which could also match the exact control.

>>两个表都有相同的名称。不确定如何使它们独一无二,因此在运行测试时它可以识别所需的表格

您是否介意使用十字准线工具来获取两个表格,并检查他们的每个属性?通常,它们之间是一个或两个不同的属性。即使我们无法通过使用该属性来区分它们,我们至少可以识别它们中的一个
,我们将使用"Tab"键或"Up", "唐氏QUOT;
箭头键  以定位另一个。

Would you mind using Cross-hair tool to get the two tables, and check their each property? Usually there are one or two properties which are different between them. Even we could not distinguish them by using the property, we could at least identify one of them, and we would use "Tab" key or "Up", "Down"arrow keys  to target anther one.

希望有所帮助。

祝你好运,

Fletch

 


这篇关于如何在Kendo Application for Coded ui Testing中识别对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 20:06