Println, Why i can't print the value of global variable?

hi i am sorry if it’s too basic,

I want to print global value using “println” but why its print the name instead?

why its not print the “standard_user”?

another case:

List<WebElement> ItemList = WebUI.findWebElements(findTestObject('Object Repository/List_Item'), 10)

for (data in ItemList) {
    println data.getText()
}

Result:
- for (def data : webItemHargaList)

    • println(data.getText()) (0.014s)*
    • println(data.getText()) (0.014s)*
    • println(data.getText()) (0.014s)*
    • println(data.getText()) (0.014s)*

is it intended? i want to print the list not the command

1 Like

Your Result for Print will be reflected in the Console. it won’t reflect in the log. Please check your console

1 Like

1 Like

@kazurayam @bharathi.a owala i see, thankyou for responding

1 Like