English|Deutsch
Subscribe Ranorex Announcements Feed Ranorex LinkedIn Ranorex twitter Ranorex Facebook

Element Browser

The integrated element browser provides all the familiar features like tracking, filtering UI elements, editing RanoreXPath or simple navigation through the element tree, of Ranorex Spy. The Element Browser view is divided into three window panes, which can be activated by selecting the associated check box.

Element Browser view within Ranorex Studio

In addition drag&drop functionality makes working within Ranorex Studio even easier. Just drag&drop elements from the element tree into the code editor, or directly into a repository or a recording file. In case of dropping an item into code, Ranorex Studio automatically declares a Ranorex.Adapter object according to the RanoreXPath expression.

C#

// code generated after dropping 
// Form 'Calculator' into code editor
Form formCalculator = "/form[@title='Calculator']";
// activate Calculator
formCalculator.Activate();

// code generated after dropping 
// Button '1' into code editor
Button button1 = "/form[@title='Calculator']/button[@text='1']";
// click button
button1.Click();

VB.NET

' code generated after dropping
' Form 'Calculator' into code editor
Dim formCalculator As Form = "/form[@title='Calculator']"
' activate Calculator
formCalculator.Activate()

' code generated after dropping
' Button '1' into code editor
Dim button1 As Button = "/form[@title='Calculator']/button[@text='1']"
' click button
button1.Click()

Python

# code generated after dropping
# Form 'Calculator' into code editor
formCalculator = Form("/form[@title='Calculator']")
# activate Calculator
formCalculator.Activate()

# code generated after dropping
# Button '1' into code editor
button1 = Button("/form[@title='Calculator']/button[@text='1']")
# click button
button1.Click()

Tracking within Ranorex Studio

Use the 'Track' button or the instant tracking feature to track UI elements just as you would with the standalone Ranorex Spy tool.

Start tracking within the 'Element Browser' view