How to get an integer on selenium IDE -


i got page want run code:

i got css properties:

<center>      radicacion exitosa, numero radicacion: 12 - 132263…  </center> 

i want store "132263" in variable because have copy , paste them in window, want know if there way number tag...specially "132263" because if store variable selenium ide full text.

thanks

using regex in javascript you:

<tr> <td>storetext</td> <td>//center</td> <td>full</td> </tr> <tr> <td>storeeval</td> <td>var regex=/\-\s+(\d+)\s+\-/;regex.exec(storedvars['full'])[1];</td> <td>number</td> </tr> <tr> <td>echo</td> <td>${number}</td> <td></td> </tr> 

we're capturing text center tag , running regex grab number out of (using group (\d+) , returning [1]).


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -