Hi,
I manage to store information from where I want using
Target xpath=//*[@id=“root”]/div/div/div/div[4]/div/fieldset/div[3]/div
But the data I get is “Blablabla 0.0034348” and I only need the number. How do I only store the number or how do I use ‘type’ so that it only outputs the number? Definitely something easy but took me an hour before I got here so yeah… please helpp
Appreciate!
All the best!
Okay, I found this: Store partial text of a line
And this: Search and Extract page source code - Selenium IDE Commands Tutorial
So if you don’t hear of me by tomorrow, I’m probably fine. All the best!
I use a better solution to do this
This is the code working like a charm replace counter with your variable name
{
“Command”: “comment”,
“Target”: “Keep Numbers Only In Counter”,
“Value”: “”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “var mystring = ${Counter}; var replaced = mystring.replace(/\D/g, ‘’); return replaced”,
“Value”: “Counter”
},