Testing for infragistics controls

Jul 9, 2008 at 3:34 PM
Edited Jul 9, 2008 at 3:36 PM

    We are try to using white to do testing for infragistics controls, and find some problems. In order to get good expression, we do a sample for it. 

    Create one windows application, there are two datagrid controls in it. One's type is System.Windows.Forms.DataGridView, suppose the id is "dataGridView1", the other's type is Infragistics.Win.UltraWinGrid.UltraGrid, suppose the id is "ultraGrid1". We use the following codes to get the two controls respectively, like 

    Application app = Application.Launch(path);  //The path is the executable file's path
    Window window = app.GetWindow("White Hello World", InitializeOption.NoCache); //"White Hello World" is the form name

    Table table=window.Get<Table>("dataGridView1");
    Console.WriteLine(table.Rows.Count); // It's ok .

    Table table1=window.Get<Table>("ultraGird1");
    Console.WriteLine(table1.Rows.Count); //It's failed. Get the BricksException when call table1.Rows. 
   (In addition, when we want to access the rows or cells for the above, the infragistics controls also have problems.)

    For the second condition, I don't know what's the problems. Any one have the experience about it? Thanks for your help. 

   Otherwise, whether the problem is for the Infragistics controls? 

Jul 11, 2008 at 5:40 AM
I think the issue is with lack of support from Infragistics controls for UIA.

Someone else also faced similar problem elsewhere: