无法找到FlexGridTable列名称。 CodedUi [英] Unable to Find FlexGridTable column names. CodedUi

查看:61
本文介绍了无法找到FlexGridTable列名称。 CodedUi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有
FlexGridTable  in< g class =" gr_ gr_22 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 22"
id =" 22"> WinTable< / g>。 我想创建一个方法,我可以通过ColumnHeader迭代并检查此ColumnHeader行中字段的值。 

I have a FlexGridTable in <g class="gr_ gr_22 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="22" id="22">WinTable</g>.  I want to create a method where I can pass the ColumnHeader to iterate through and check the value of the fields in the rows of this ColumnHeader. 

重要提示:  ColumnHeader本身可能会改变位置表格,所以我需要确保在检查
的数据值时找到正确的列。

Important Note: ColumnHeader itself may change positions in the table, so I need to make sure we find the right column while checking for the data values.

我试过下面的行

#1

var colnames = uIFlexGridTable.GetColumnNames();

var colnames = uIFlexGridTable.GetColumnNames();

#2 

var desiredColumn = uIFlexGridTable.ColumnHeade rs.FirstOrDefault();

int indexOfColumn;

var desiredColumn = uIFlexGridTable.ColumnHeaders.FirstOrDefault();
int indexOfColumn;

if(desiredColumn!= null)

if (desiredColumn != null)

    {

  &NBSP; &NBSP; &NBSP;   indexOfColumn = uIFlexGridTable.ColumnHeaders.IndexOf(desiredColumn);

  &NBSP; }

   {
         indexOfColumn = uIFlexGridTable.ColumnHeaders.IndexOf(desiredColumn);
    }










推荐答案

您好Esaimani Navamani,

Hi Esaimani Navamani,

您使用FlexGridTable控件测试了哪些应用程序?

What application did you test with FlexGridTable control?

我的建议是我们可以确保FlexGridTable是否支持编码的UI测试,因为它是第三方控件,并且要在Windows窗体中启用第三方控件,您必须添加引用和代码。有关详细信息,请参阅

启用编码的UI测试你的控制。

My suggestion is that we could make sure that whether FlexGridTable supports the coded UI tests, since it is the third-party controls, and to enable third party controls in Windows Forms, you must add references and code. For more information, see Enable Coded UI Testing of Your Controls.

问候,

Judyzh


这篇关于无法找到FlexGridTable列名称。 CodedUi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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