Forum Discussion
rraghvani
3 years agoChampion Level 3
In script code, you can do
function Test()
{
// Project.Variables.Name = "Theme1"
var strXPath = aqString.Format("//span[text()='%s']", Project.Variables.Name);
Log.Message(strXPath);
}
But it's not possible to do //span[text()='" + Project.Variables.Theme + "'] in Name Mappings. TC will just search that entire property value.
Related Content
- 6 years ago
- 9 months ago
Recent Discussions
- 13 hours ago