Hello,
I’m having an issue inserting a variable into a string that has a dash sign. Kantu/selenium I believe thinks the dash is a minus sign and therefore it’s not working. The “A” at the end of the string is my variable. The xpath is as follows:
//*[@id=“inputInfringingElement-${A}”]
This results in an error and it shows that the variable didn’t get inserted (says it fails to find //*[@id=“inputInfringingElement-${A}”]). But if I put like a space inbetween - and ${A} it will insert the variable but it still fails to find the xpath because now there’s that space. Might be something really stupid but I can’t figure out how to get it to work.
Thanks!