How to select random login ids

89 views
Skip to first unread message

Sukhi B

unread,
Apr 20, 2016, 8:52:18 AM4/20/16
to Selenium Users
Hey there, I have tried to search for this but no luck (do ot shoot me lol)

I have not used Selenium for a few years now, and I wondering if you could help.

Basically I need to know how to select a random login ID when i start a test, i have only used Selenium Webdriver, I do not know much about how to code via the source tab and only use the recording in firefox.

Any help would be greatly appreciated.

Thanks in advance


Moises Siles

unread,
Apr 20, 2016, 9:24:35 AM4/20/16
to seleniu...@googlegroups.com
Could you elaborate what do you mean by select random login ID? Do you mean dynamic IDs?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a33e8718-4dba-46d4-b5bc-69ad70df7f23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sukhi B

unread,
Apr 20, 2016, 9:38:31 AM4/20/16
to Selenium Users
Thanks for the reply, basically i have a 100 login ids (username and passwords) i need selenium to choose randomly these user names so every test that is run a random username is chosen and the password for that username is entered, hope this helps

Moises Siles

unread,
Apr 20, 2016, 12:28:29 PM4/20/16
to seleniu...@googlegroups.com
Oh I got it, so basically you can research a little bit about data providers, and you can store all your usernames and password in an xls or something similar.

Ripon Al Wasim

unread,
Apr 21, 2016, 3:43:54 AM4/21/16
to seleniu...@googlegroups.com
Create some data using Username and corresponding Password in excel. Read the test data from excel file by selenium webdriver code using any supported programming language such as Java, C#, Python etc.

It's not possible by using Selenium IDE. You have to use Selenium WebDriver.

br,
Ripon

Reply all
Reply to author
Forward
0 new messages