How to understand tracking in a recording

Best practices, code snippets for common functionality, examples, and guidelines.
kdreiling
Posts: 19
Joined: Mon Sep 24, 2012 9:45 pm
Location: Kansas City

How to understand tracking in a recording

Post by kdreiling » Mon Dec 21, 2020 6:30 pm

Greetings!

I am trying to understand and learn how - when - where to modify the path of an recorded item. For example, in the line below, I want to understand how I can narrow this path, how do you know where to put //, /./, /?/. This is a field in a WPF container. How does Ranorex know how to navigate to that field. I am working with a test suite I started recording in 2012 and has been dormant for a while. I am having trouble getting it to come back to life. Any suggestions are welcome. I have watched Webinars and read the user guide, but any personal advice would be wonderful.

Here is the snippet (do I need the whole thing):

/form[@controlname='mdiContainer']//form[@name='frmMemberSearchWPF']/element[@controlname='ElementHost1']/element[@win32ownerwindowlevel='0']//container[@automationid='grdBody']/container[1]/container[1]/container[@caption='']/container[6]/text[@automationid='txtSearch_PayerClientID']

User avatar
Stub
Posts: 410
Joined: Fri Jul 15, 2016 1:35 pm

Re: How to understand tracking in a recording

Post by Stub » Mon Jan 04, 2021 10:51 am

There's a bit of information about the structure of RxPaths here.