Generate Random String Selenium IDE
1 min readAug 5, 2020
Hello everyone,
I want share how to generate random string into text field, i’m using selenium IDE 3.17.0
don’t use store command because deprecated using execute script and using return in column target.
call your variable using ${variable}
This example how to generate random string :
Follow This Step
- Create Variable Ticket
Command : execute script
Target : return Math.random(). toString(36).substring(2,12)
Value : ticket
2, Call Variable Ticket into text field
Command : type
Target : name=code
Value : ${ticket}
Hopefully this can help and be useful, Bye :)