Selenium - random string function

From Foochal

Jump to: navigation, search


How do I create a random string in selenium

You need to use the store command to populate a variable, then user the variable

store | javascript{new Date().getTime()} | timestamp
type  | userid                           | any-prefix-${timestamp}-any-suffix

Personal tools