Automatical identification of the parent of some element
Posted: Thu Oct 16, 2014 3:14 pm
I am trying to identify the parent of some rawtextblock
The parent's xpath is element[@controlid='59648']. It is a window with many children, one of which is a rawtextblock. When I make a recording I want that Ranorex Studio identifies the parent while clicking on rawtextblock.
I tried to describe this block as element[@controlid='59648']/rawtextblock/.. It is nicely highlighted in Spy, but during a recording RanorexStudio ignores this item and produces a new rawtextblock. I also tried to set the xpath weight to exclude a rawtextbox from the search but also without success. Are there any way to solve this problem?
The parent's xpath is element[@controlid='59648']. It is a window with many children, one of which is a rawtextblock. When I make a recording I want that Ranorex Studio identifies the parent while clicking on rawtextblock.
I tried to describe this block as element[@controlid='59648']/rawtextblock/.. It is nicely highlighted in Spy, but during a recording RanorexStudio ignores this item and produces a new rawtextblock. I also tried to set the xpath weight to exclude a rawtextbox from the search but also without success. Are there any way to solve this problem?