Is it possible to create Selenium tests using the Firefox plugin that use randomly generated values to help do regression tests?
The full story: I w
I made a little improvment to the function generateRandomString. When FF crashes, it's good to be able to use the same random number again.
Basically, it will ask you to enter a string yourself. If you don't enter anything, it will generate it.
function generateRandomString( length, chars ) {
var string=prompt("Please today's random string",'');
if (string == '')
{for ( var i = 0 ; i < length ; i++ )
string += chars[ Math.floor( Math.random() * chars.length ) ];
return string;}
else
{
return string;}
}