Ranorex XPath consists of Adapters, Attributes and Values.
To make a module more "generic", it is preferred to use variables and use them later in DDT (data driven test).
But "Adapters" in Ranorexpath cant be forced to be a variable.
Examples for Adapters:
button (useful to have it as variable)
progressbar (useful to have it as variable)
text (useful to have it as variable)
Example of XPath with variables for "Attributes" automationid and visible:
Code: Select all
.//form[@automationid='AID_Test']/progressbar[@automationid=$AutomationId and @visible=$visible]
When trying to change the Adapter progressbar into a variable, the Rx-Studio wont accept this.
Has someone an explanation for that?
Thanks in advance.