vendredi 19 octobre 2018

Chrome Selenium IDE random number generator

I saw similar topics but nothing exact.

When I used Firefox and the IDE I was able to use StoreEval | Math.round (Math.random() * 99999999999) to create a random number of a specific length. I have now moved to Chrome to use the IDE and "StoreEval" is no longer an option. I have tried all the new "store" options available but end up with the below warning in the logs and the number is not created:

"Warning implicit locators are deprecated, please change the locator to id=Math.round (Math.random() * 99999999999"

Any ideas on what I need to use/change? I will admit I am not exactly sure what "please change the locator to" means.

Thanks!




Aucun commentaire:

Enregistrer un commentaire