from running the code you can see that the string “RESOLVED” is stored into a var called var_named_here == so I know that the text in there is “RESOLVED”
+> but when I go and type this in a text box it fails
it types out the name of the variable not the actual string stored in the variable – I have tried saving as storeText, or just store etc but none of these seem to do the trick – would love love love love to know how to fix this
again I can see it storing the nnumber 6874 in the var called cases, but when I type out ${cases} it gives me the literal “${cases}” instead of car associated/stored in it.
not sure but try to use quotation marks as like
List<WebElement> elements = driver.findElements(By.xpath("//button"));
for (WebElement el: elements){
println "${el.getTagName()}"
println "${el.getText()}"
println "${el.getAttribute('value')}"
}