mardi 20 octobre 2015

How to use a stored variable and random number with selenium ide

How would a stored variable (stored text) and random number work with Selenium IDE? Trying to do this combination has proved unfruitful.

Example:

type css=input.some-text javascript{'storedVars.variable'+Number(Math.random(storedVars.rand)*100).toPrecision(2));}

All that is output is storedVars.variable due to the field limit.

Looking for it to return the actual variable value and the random number, i.e., text53.

Any help would be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire