I have the following text:
Criado por Comprador em 14/05/2015 - 16:18
I would like to save in a variable only the part 14/05/2015 - 16:18
Can anyone give me a light on how to do in selenium IDE?
I have the following text:
Criado por Comprador em 14/05/2015 - 16:18
I would like to save in a variable only the part 14/05/2015 - 16:18
Can anyone give me a light on how to do in selenium IDE?
What you can do is add a limiter in this string for example a - or | and in the code it does the following:
store | Criado por Comprador em | 14/05/2015 - 16:18 | string
store | 0 | delimiter1
store | javascript{storedVars['test'].split('|')[storedVars['delimiter1']]} | output
echo | ${output}
And with that you get the array that will return two positions and use only the second one that will contain the date and time.