Page 1 of 1

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

Posted: Wed Jul 30, 2008 12:52 pm
by hena
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?

Posted: Wed Jul 30, 2008 2:55 pm
by Support Team
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