• Blogs
  • /
  • How to Generate Random Data Using Selenium Ide?

How to Generate Random Data Using Selenium Ide?

19 Jun 2023
How to Generate Random Data Using Selenium Ide?

In my previous blog, I explained the process of fetching data from the XML , I believe I was able to strike the right note addressing the process.

In this blog, I would like to depict how to generate random values for the inputs, no file (xml, csv etc) to retrieve data.

Generating Random Email

ValuesCommandTarget
storejavascript{“hello” + Math.floor(Math.random() * 1000) + “@test.com”;}email
echok 

 Generating Random Email Using Selenium Ide

 Generating Random Password

ValuesCommandTarget
storejavascript{Math.random().toString(36).substring(2,8)}password
echo${password} 

 Generating Random Password Using Selenium Ide

The above example clearly illustrates the process of generating random emails and passwords. Now, let us go to an example that portrays how we can generate the values.

 Using the same example http://www.screencast-o-matic.com as in the last blog,

Generating Random Emails and Passwords Using Selenium Ide

 By using the JavaScript commands, we can create random emails and passwords, without entering any data we can directly Sign up to the form.

Like this we can create random data for the fields. Try other examples and find how its working.

Know More About This Topic from our Techies

Have a project concept in mind? Let's collaborate and bring your vision to life!

Connect with us & let’s start the journey

Share this article

Related Case Studies

Backgoun
The Experience we create with Technology is Everything!The Experience we create with Technology is Everything!

Get in touch

Kickstart your project
with a free discovery session

Describe your idea, we explore, advise, and provide a detailed plan.

The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!
The Experience we create with Technology is Everything!