Forum Discussion

tvklovesu's avatar
Frequent Contributor
2 years ago

nameMapping- How to pass project variable in the namemapping xpath


I thought I saw somewhere but can't find the answer for this again. I am trying to pass variable that's defined in the project Temp variables section and combine with a text. 

for ex: Xpath = //div[.='abcd']

I want something like 

Xpath = //div[.=Project.variables.myText]


Same for url

URL = http://Project.variables.MyURL/webpage.html

This URL will be different from Lower environment to Prod. So I can't just user * in the url part.



7 Replies