How to use a variable in xpath string
Posted: Tue Jun 02, 2015 9:02 pm
My Object identification is something like this;
/dom[@domain='something.com']//ul[#'bodyForm:messages']/?/?/span[@innertext~'^Hours\ per\ week:\ ''xx''\ is\ n']
How can I replace "XX" with a variable?
Thanks.
/dom[@domain='something.com']//ul[#'bodyForm:messages']/?/?/span[@innertext~'^Hours\ per\ week:\ ''xx''\ is\ n']
How can I replace "XX" with a variable?
Thanks.