lundi 9 novembre 2020

How to generate random user id and fill with in a text box using Selenium and java

I am using an application where every time, i need to create new userid. I want code which can generate the same for me through regular expression. Example- Alen001, Alen002, Alen003 and so on.

driver.findElement(By.id("userId")).sendKeys("Alen001");



Aucun commentaire:

Enregistrer un commentaire