Ranorex Help Center How can we help you?

RanoreXPath Edit Mode

There are two ways to change the RanoreXPath expression. One is to work with the path editor. The second option is to edit the path directly in the textbox of Ranorex Spy; this 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 help with text entry. By pressing the key combination <CTRL>+<SPACE> at any time, the RanoreXPath editor suggests a list of suitable keywords, attributes or operators.

RanoreXPath auto completion

RanoreXPath auto completion

The RanoreXPath editor mode is indicated by a yellow background color. 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

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

Add matching items to the repository

To stop the edit mode, click the red cancel button which is located in the RanoreXPath edit box or press the <ESC> key.
Leave RanoreXPath edit mode

Leave RanoreXPath edit mode