Trying to get an element attribute in robotframework, like so:
${list_id} = Get Element Attribute xpath://h3[contains(text(), ${name})] data-testid
All well and good, ${name} is a variable set higher up in the flow, but how do I wrap a variable so it is parsed as “XYZ” and not just XYZ? Without the quotes it’s an invalid xpath expression. Seen similar issues, but not many have included a variable.
Thanks, JB