Ranorex Studio, Spy, Recorder, and Driver.
Posts: 4
Joined: Sat Mar 28, 2009 6:46 pm


Post by schlaup » Sat Mar 28, 2009 7:09 pm

I am evaluating and found the following problem:

The Recorder and Spy use:

Code: Select all

element[@processname='Test' and @controltypename='MdiClient']/form[@controlid='2']/*
The ControlId of MDI child windows depend on the number of open MDI child windows and identifying them by ID does not work in a shared repository.

It would be better to use something like:

Code: Select all

element[@processname='Test' and @controltypename='MdiClient']/form[@controltext='Manage']/*
I know that I can change the path manually (though not comfortably!) but if I record more tests, the Recorder will add a new repository entry instead of using the entry that I edited.

Any solution?


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

Post by Support Team » Thu Apr 02, 2009 3:03 pm

I'm sorry, but currently I can't provide you with a satisfying solution for that special case ("special case" because usually the Text of an element is more significant than its ControlId) that automatically works with the RanorexRecorder.

However, in a future version we are going to add the possibility to configure a set of rules that determine which attributes should be used in RanoreXPaths, e.g. "for application X favor attribute Title over ControlId".

Ranorex Support Team