RanoreXPath Edit Mode

There are two ways to change the RanoreXPath expression. One way is to work with the Path Editor which you can open with the magic wand in the textbox. The second option is to edit the path directly within the textbox of Ranorex Spy which is described in the following section.

To support the editing of RanoreXPath expressions, the editor textbox provides an auto completion feature which helps to avoid syntax errors and to speed typing. By pressing the key combination <CTRL>+<SPACE> at any time, the RanoreXPath editor suggests a list of suitable keywords, attributes or syntax codes.

RanoreXPath auto completion
The RanoreXPath editor mode is indicated with a yellow highlighted text box. In edit mode, RanoreXPath is used as a query to filter UI elements as follows:
Use of RanoreXPath as a filter to search for buttons
The result is presented directly within the Ranorex Spy tree. All matching items are highlighted in yellow. In addition the result can easily be added to a repository by selecting the menu item 'Add Matching Children to Repository'.
Add matching items to the repository
To stop the edit mode click the red cancel button which is located in the RanoreXPath edit box.
Stop RanoreXPath edit mode