Page 1 of 1

Table doesnt return rows

Posted: Tue Dec 02, 2008 6:28 pm
by din2dino
Hi,

I have a table element say myTable

and when I call

Ranorex.Element[] rows = myTable.FindChildren(Role.Row);
Console.WriteLine(rows.Length);

It reutrns 0. Only cells are returned.

Am i missing something?

Posted: Wed Dec 03, 2008 2:11 pm
by Support Team
What kind of control does that happen with?

Usually, an element with Role Table has rows as children. But that depends on the MSAA provider. It could be that this table does not provide row elements (have you inspected the table with RanorexSpy?). Try searching for cells directly, instead.

Regards,
Alex
Ranorex Support Team

Posted: Thu Dec 04, 2008 10:17 pm
by din2dino
Ranorex doesnt show any rows too. I can retrive cells, but I would want to know the number of columns and rows as well. This can change in my tableand with just cells I cant find the rows/clumns

Any ideas?

Posted: Tue Dec 09, 2008 10:06 am
by Support Team
If RanorexSpy does not show any rows/columns and you can't get them by code, then the control does not support rows/columns and you can only rely on cells directly. Sorry, but Ranorex relies on the MSAA implementation of the control and it seems that your control does not implement a representation by rows or columns.

Regards,
Alex
Ranorex Support Team