Ask general questions here.
-
chris
- Posts: 17
- Joined: Fri Mar 27, 2009 6:10 pm
Post
by chris » Wed Apr 01, 2009 8:08 pm
I am having trouble getting the Text information from a table cell. Here is the situation:
I am trying to select a user from Active Directory and open its properties window. I had this working this morning with the following line of code:
Code: Select all
string user = “’testUser’”
Cell userCell = Host.Local.FindSingle<Cell>(new RxPath("/form[@title~'^Active Directory Users']/container/*/element/table/*/cell[@text~" + user + "]"), new Duration(90000));
This was working fine and I was able to select the user and double click the user based on the cell text. I ran it again to validate something when it stopped working. After some research I noticed that it was not finding it because the cell text was now “”. When I use the element browser the same as I did before and browse to the table and cell this is what it show:
Code: Select all
"/form/container/*/element/table/row[@index='8']/cell[@text='' and @columnindex='0']"
Does anyone know why the cell text is not showing up anymore? Is there a better way to do this?
Thanks.
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Post
by Support Team » Fri Apr 03, 2009 2:34 pm
There are SysListView32 controls that do not strictly implement the standard interface for list views and sometimes return weird indices for their sub items. The list view in the MMC (Microsoft Management Console) seems to be such a list view.
However, we found a workaround for that issue that is included in the upcoming Ranorex 2.0.2 maintenance release.
So, please try to download the version 2.0.2 from our homepage (it will be released at the beginning of next week) and try again!
Regards,
Alex
Ranorex Support Team
-
chris
- Posts: 17
- Joined: Fri Mar 27, 2009 6:10 pm
Post
by chris » Fri Apr 03, 2009 6:00 pm
Thanks. I'll give that a try as soon as it comes out. Thank you Microsoft for making things easy again!
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Post
by Support Team » Tue Apr 07, 2009 9:36 am
The V2.0.2 release is out now, so feel free to give it a try
Regards,
Alex
Ranorex Support Team