How to read data from 2 different columns in a table

Ranorex Studio, Spy, Recorder, and Driver.
kishhari
Posts: 4
Joined: Wed Oct 09, 2013 9:46 pm

How to read data from 2 different columns in a table

Post by kishhari » Tue Oct 15, 2013 1:34 am

How to read data from 2 different columns in a table. Once column has text and the other column has value enabled or disabled based on those values the properties change. What I want to do is since i have 4 columns of data i need to compare and enable the properties and then do the operation based on the property.

Attaching screen shot for reference

Attaching Xspy Screen shot too for reference...

In the below table how do we compare b/t policy column and status column....
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to read data from 2 different columns in a table

Post by Support Team » Wed Oct 16, 2013 3:49 pm

Hello,

You might need to navigate back (with ..) to the row of your table and select the div Tag in the second TD tag.
Please take a look at RanoreXPath in our User Guide.

Please post or send ([email protected]) us a Ranorex Snapshot of your application?
This would help us to provide you with a possible RanoreXPath that you could use.
Please take a look at our User Guide for more information on how to create snapshot files.

Thank you in advance.

Regards,
Markus (T)

kishhari
Posts: 4
Joined: Wed Oct 09, 2013 9:46 pm

Re: How to read data from 2 different columns in a table

Post by kishhari » Fri Oct 25, 2013 1:50 am

Attached the ranorexsnapshot for the above issue
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to read data from 2 different columns in a table

Post by Support Team » Tue Oct 29, 2013 2:01 pm

Hello kishhari,

Thanks for your snapshot.

Please try to use one of the following paths in Spy to access the value of 'Password minimum length':

Code: Select all

/dom[@domain='172.27.126.123']//div[#'extgen63']/?/?/table//div[?'Password minimum length']/../../td[3]/div
or

Code: Select all

/dom[@domain='172.27.126.123']//div[#'extgen63']/?/?/table//div[?'Password minimum length']/../../td/div[@class='x-grid3-cell-inner x-grid3-col-policyValue']
If you want to get the status of it, you could use one of these paths:

Code: Select all

/dom[@domain='172.27.126.123']//div[#'extgen63']/?/?/table//div[?'Password minimum length']/../../td[4]/div
or

Code: Select all

/dom[@domain='172.27.126.123']//div[#'extgen63']/?/?/table//div[?'Password minimum length']/../../td/div[@class='x-grid3-cell-inner x-grid3-col-policySelected']
More information about using RanoreXPath can be found in our User Guide.

Kind regards,
Markus (T)