Can not using global variable in xpath

Hi,

I have a global variable with name: GlobalVariable.msgid, but I can not use it in the xpath, Katalon can not find the object with xpath below (the variable value is specify)

//div[(text() = ‘${GlobalVariable.msgid}’)]

But when I fix the value in xpath like below image, Katalon run successfully

Can you help me ?

katalon_variable.PNG

1. change selection method to basic - AFAIK variabels are not working when selection method is XPath
2. variable you define is local for this instance of object, and substitution must be done in calling this object:
basic: xpath=//div[(text() = ‘${MYTEXT}’)]

findTestObject('or/path/to/object',[('MYTEXT'):GlobalVariable.msgid])

I am using Katalon 7.9.1…I do not find Basic under settings .Any help here

See

“Basic” label was renamed to “Attributes”