Contributions
Re: How to place a Variable into Xpath expression?
Hi, Thanks for your answer! I`m not required to use Xpath, but it feels more natural and simple for me to use Xpath/CSS. So, if I want to avoid Xpath, I should be able to place a variable inside the Value of the contentText. I switched to the conditional and I saw that "contains" condition is not an option there, but for reaching this, I should use wildcard before/after the value. My question here is: I am able here to place a variable + a wildcard? The options for the "contentText" value are Constant, Project Variable and Property, but nothing like code syntax where I can combine a variable + wildcard. Thank you in advance! Cristian3.6KViews0likes1CommentHow to place a Variable into Xpath expression?
Hello, I want to modify an Xpath expression and include a Project Variable into it. Instead of using//gub-beratercard/mat-card[contains(., 'Jonathan')], I want to replace 'Jonathan" with a variable from my project. I tried to use//gub-beratercard/mat-card[contains(., 'Project.Variables.ConsultantName')], with and also without quotes around the variable, but with no success. Could you please help me find out how to place a variable into this Xpath expression? Thanks!Solved3.8KViews0likes4Comments