Why does Recorder use 'FormFind' instead of 'FormFindTitle'?

Ranorex Studio, Spy, Recorder, and Driver.
hena
Posts: 3
Joined: Wed Jul 30, 2008 12:21 pm

Why does Recorder use 'FormFind' instead of 'FormFindTitle'?

Post by hena » Wed Jul 30, 2008 12:52 pm

I am just evaluating RanorexRecorder and tried to record a short sequence of interactions with our product. The generated Python code works fine as long as I do not restart our software.
The reason for this behavior is the usage of FormFind which requires className as argument.

Code: Select all

form = Ranorex.FormFind("VISUM 10.20-00* - Network: EXAMPLE.VER* - [Network]", Ranorex.MATCH_EXACT, "Afx:00400000:8:00010011:00000000:0005072D", 0, 5000*timeScale)
Our application does not have a constant className. If I change the code as follows, the script works fine even if I restart our software.

Code: Select all

form = Ranorex.FormFindTitle("VISUM 10.20-00* - Network: EXAMPLE.VER",
        Ranorex.MATCH_FROM_START, True, 5000*timeScale)
Is it possible to tell the Recorder to generate Python code with method FormFindTitle instead of FormFind?

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

Post by Support Team » Wed Jul 30, 2008 2:55 pm

Unfortunately, the current version of the Ranorex Recorder can't be configured to do search only by FormFindTitle. I suggest to extract your python code from Ranorex Recorder and change the generated method into FormFindTitle.

Christoph,
Ranorex Support Team