I get the following error while using the storeText command
"[error] Cannot read property ‘toUpperCase’ of undefined"
It doesnt seem to like my xpath
//*[@id=“TabContent_orderdetail”]/div[1]/div/table/tbody/tr/td[2]/p/text()[1]
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”
}
]
}
Hi.
Can you help me wtih the same problem?
gsunku
October 22, 2019, 3:49pm
5
Cannot read property ‘toUpperCase’ of undefined
{
“Command”: “storeText”,
“Target”: “css=#dNvy_graph > svg.margin-bottom-10 > g > text”,
“Value”: “mytext”
},
{
“Command”: “echo”,
“Target”: “${mytext}”,
“Value”: “”
}
get same error for the above css , please can we check this