How to force Ranorex "Adapter" to be used as Variable
Posted: Fri Feb 16, 2018 9:09 am
Hello Forum!
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:
form
Container
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:
The "Value" is in both cases a different variable.
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.
BR
Klaus
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:
form
Container
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.
BR
Klaus