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?
Table doesnt return rows
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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
Regards,
Alex
Ranorex Support Team