Why is Katalon not typing out my variable that I stored?

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 :frowning: :frowning: :frowning:

555

Here is another example of the same problem

1212

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.

use as var_name_here. Do not use $ or {}

Thanks but… tried it … does not work :frowning:

Also, as far as I understand the documentation clearly states using ${…} to show that this is a variable

it literally just typed var_name_here in the text box => instead of the number stored in that variable “6874”

Hi,

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')}"
}