Automatical identification of the parent of some element

Ask general questions here.
BorisS
Posts: 11
Joined: Fri Jul 11, 2014 2:25 pm

Automatical identification of the parent of some element

Post by BorisS » 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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Automatical identification of the parent of some element

Post by Support Team » Mon Oct 20, 2014 1:58 pm

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
.
Image