Using variables inside selector editor

Is there some way to using variables inside selector editor, for example in NM Get Element xpath ? Dont find any info in manuals :confused:

Yes, you can use double curly braces.
If you have a variable named “classname”

"xpath" : "//div[@classname=\"{{classname}}\"]\span"

Note, this will be doing a string replace, it is not an expression. So you cannot do stuff like

"xpath" : "//div[@classname=\"table\"]\div[{{counter+2}}]"

Thanks for quick answer and this example Allan!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.