Hello, due to some xpath’s being very long and complex I am trying to find an element by it’s name and then save the xpath to a string variable. I am trying to do the following:
saveXpath = find_element(:name, “buttonName”).xpath
Seems like this is not working even though when I tried saving anything else (label, value, size etc.) it all seemed fine. Can someone help me? Seems like I’m stuck here and I can find anyone trying to do the same thing…