Page 1 of 1

How to retrieve value in row[@accessiblename='value']

Posted: Wed Oct 10, 2012 7:45 pm
by monkey2012
There are 3 items as follows, is there a way that I can get the "1", "2", or "3" based on "Cell One", "Cell Two", or "Cell Three"?

1. mCell1:
/form[@title~'^mWindow Test]/element[@class='QWidget' and @instance='5']/table/row[@accessiblename='3']/cell[@accessiblename='Cell One']

2. mCell2:
/form[@title~'^mWindow Test]/element[@class='QWidget' and @instance='5']/table/row[@accessiblename='2']/cell[@accessiblename='Cell Two']

3. mCell3:
/form[@title~'^mWindow Test]/element[@class='QWidget' and @instance='5']/table/row[@accessiblename='1']/cell[@accessiblename='Cell Three']

Re: How to retrieve value in row[@accessiblename='value']

Posted: Thu Oct 11, 2012 10:12 am
by Support Team
Hi,

you can get the accessiblename of the parent row using following RanoreXPath:
mCell1.Element.Parent.GetAttributeValue("Accessiblename").ToString()
Regards,
Tobias
Ranorex Team

Re: How to retrieve value in row[@accessiblename='value']

Posted: Fri Oct 12, 2012 4:15 pm
by monkey2012
Thanks