Forum Discussion
Carol665yn
3 years agoOccasional Contributor
Just concatenate your template XPath string with the value stored in the variable.
E.g.:
var strXPath = aqString.Format("//gub-beratercard/mat-card[contains(., '%s')]", Project.Variables.ConsultantName);
And I agree with Marsha: try to avoid XPath in TestComplete unless you are considering cross-platform testing.
Related Content
- 7 years ago
- 9 years ago
Recent Discussions
- 13 hours ago