[error] Cannot read property 'toUpperCase' of undefined

I get the following error while using the storeText command

"[error] Cannot read property ‘toUpperCase’ of undefined"

It doesnt seem to like my xpath


I notice that when i take off the text()[1] it works but it doesnt get what I need.

Hi, can you please paste the complete source code of the macro here ( = JSON code from the source tab), then we can test this further. (Indeed, it sounds like bug).


“Name”: “Select correct month”,
“CreationDate”: “2019-2-23”,
“Commands”: [
“Command”: “storeText”,
“Target”: “xpath=//*[@id=“calview”]/div[2]/table/tbody/tr[1]/td/text()”,
“Value”: “monthDisplayed”


Can you help me wtih the same problem?