Save part of a text in a Selenium IDE variable

3

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?

    
asked by anonymous 14.05.2015 / 21:24

2 answers

2

There are two links that can help you, take a look at them:

link

link

    
14.05.2015 / 21:40
0

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.

    
15.05.2015 / 15:14