Generate Random String Selenium IDE

Derry Berni Cahyady
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 :

sampe command generate random string

Follow This Step

  1. 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 :)

--

--

Derry Berni Cahyady
Derry Berni Cahyady

Written by Derry Berni Cahyady

Data & Security Enthusiast | Software Engineer

Responses (1)