Page 1 of 1

Automatical identification of the parent of some element

Posted: Thu Oct 16, 2014 3:14 pm
by BorisS
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?

Re: Automatical identification of the parent of some element

Posted: Mon Oct 20, 2014 1:58 pm
by Support Team
Hello BorisS,

Please check whether the “controlid” of the parent element changes.

If the “controlid” is not causing the issue, please create a Ranorex snapshot of your application under test. Either upload the file to the forum or send it to [email protected]

Thanks,
Robert