I am currently building my 1st WEB based test cases on “MachineA” but will later run this on “MachineB,C,D...”.
While building my recordings, each click is recording the full path of A in every xpath and I then have to edit every single one to use a regex match on a substring so that it will still match when running on B.
Is there a way to make the recorder not be so literal and thereby save me the re-editing time on all my clicks.
I thought perhaps this would help but apparently it does not
“The unique ID search can be enabled/disabled within the “General settings” -> 'Enable search by unique ID (if available)'. “
Thanks...
How can I record a generic xpath without the machine name
-
- Posts: 30
- Joined: Thu Feb 13, 2014 10:29 pm
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: How can I record a generic xpath without the machine name
Hi fester13579,
I would suggest trying to work around this issue as follows.
If you need more information please do let me know.
Sincerely,
Johannes
I would suggest trying to work around this issue as follows.
- Track the IFrame element with Ranorex Spy and add it to the repository
- Convert the item to a rooted folder
- Edit the path for the rooted folder via the Path Editor and apply the regular expression
- As a consequence, new recorded or tracked items will be located within this rooted folder and you won't need to adjust the regular expression again and again
If you need more information please do let me know.
Sincerely,
Johannes
-
- Posts: 30
- Joined: Thu Feb 13, 2014 10:29 pm