Page 1 of 1

Variable at Path Editor

Posted: Mon Mar 18, 2019 8:05 pm
by douglas.velho
Hi everyone

It's possible add a value that get an variable at Path Editor ?
Example; I have a field type input text....when i see at Path Editor, his name is ...../dom[@caption='Qualitor Web']//input[#'vlinformacaoadicional1055']....so, this value 1055, can change, could be 1056,1057,etc....
I try to change:...../dom[@caption='Qualitor Web']//input[#'vlinformacaoadicional']...but it cannot find.
Is how to set something like this ..../dom[@caption='Qualitor Web']//input[#'vlinformacaoadicional+variable'].... ??
Ranorex 5.4.6 - Win Server 2016
Thanks
Douglas

Re: Variable at Path Editor

Posted: Mon Mar 18, 2019 8:33 pm
by odklizec
Hi,

Unique Id (#) does not support variables or regular expressions. You must change the xpath like this...

Code: Select all

dom[@caption='Qualitor Web']//input[@id~'vlinformacaoadicional']
Or with variable, like this...

Code: Select all

dom[@caption='Qualitor Web']//input[@id='vlinformacaoadicional' + $variable]

Re: Variable at Path Editor

Posted: Mon Mar 18, 2019 8:54 pm
by douglas.velho
Thank you, i will try and reply soon.

Re: Variable at Path Editor

Posted: Tue Mar 19, 2019 3:10 pm
by douglas.velho
Hi odklizec , it´s work.
Thanks for help.