Page 1 of 1

cell text does not exist

Posted: Wed Apr 01, 2009 8:08 pm
by chris
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.

Posted: Fri Apr 03, 2009 2:34 pm
by Support Team
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

Posted: Fri Apr 03, 2009 6:00 pm
by chris
Thanks. I'll give that a try as soon as it comes out. Thank you Microsoft for making things easy again!

Posted: Tue Apr 07, 2009 9:36 am
by Support Team
The V2.0.2 release is out now, so feel free to give it a try :-)

Regards,
Alex
Ranorex Support Team