Out of xpath that contains “− 45%” I only want to take out the “45” part
I’ve tried these but it didn’t work :
"Command": "storeText", "Target": "xpath=//*[@id=\"content\"]/div/div[3]/div[2]/div/div/div/div/a/div/div[3]/div/div/div[2]/span", "Value": "percent", "Description": "" }, { "Command": "executeScript_Sandbox", "Target": "var s = ${percent}; s=s.substring(2,2)", "Value": "number", "Description": "" }, { "Command": "echo", "Target": "${number}", "Value": "lime", "Description": ""
storeText correctly shows “− 45%”
echo shows “undefined”