Hello,
we are testing an RCP/SWT application which uses Nebula grids. Ranorex 2.x recognizes the grid as Table. However, the table doesn't contain Rows or Columns. It contains ListItems. The number of ListItems corresponds to the number of rows, but there is no way to access other columns (only the first column is recognized).
It would be great if Ranorex resolved the cells correctly and showed Rows/Columns. Currently, object Table returns zero Rows, and zero Columns. It would be even better if it could modify cells.
Nebula grid has a website here: http://www.eclipse.org/nebula/widgets/grid/grid.php
Thank you for the answer
Nebula Grid support
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
I made a simple application which shows the nebula grid.
http://flashlight.slad.cz/files/nebula.zip
It's quite big due to eclipse dependencies. You will need JRE installed.
I hope it helps.
Best regards
http://flashlight.slad.cz/files/nebula.zip
It's quite big due to eclipse dependencies. You will need JRE installed.
I hope it helps.
Best regards
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
I inspected the sample application, however, I'm afraid there is not much we can do about that inconsistent table/list item behavior. The Nebula control implements the MSAA interface, sadly they did not do a very good job. The grid reports itself as a table (good), but the children of this table are reported as list items (bad). At least, you can get the values of all columns of a row using the AccessibleName and AccessibleDescription attributes. The former contains the value of the first column, the latter contains the values of all other rows. So, you can use the value of these attributes and the String.Split method to retrieve the values of all cells of a row.
This homepage of the project says that the Grid is still in an Alpha state, so there is hope that its MSAA support will improve. Maybe you can also issue a bug report on the Nebula homepage illustrating the problem.
Regards,
Alex
Ranorex Support Team
This homepage of the project says that the Grid is still in an Alpha state, so there is hope that its MSAA support will improve. Maybe you can also issue a bug report on the Nebula homepage illustrating the problem.
Regards,
Alex
Ranorex Support Team
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
I agree, a better implementation of the MSAA interface using rows and cells would be preferable. If you really depend on that control, you should issue a bug to the project's database. As I saw, version 1.0 is not finished, yet, maybe they can squeeze that feature in.Mirage wrote:However, the cells are separated by white spaces which mix with white spaces in columns / cells. Creating a parser for that is tricky.
Regards,
Alex
Ranorex Support Team