WebPagetest Forums

Full Version: Scripting: Pick a random element from a list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can we have a primitive that picks a random value from a list?

For testing travel sites we want a dynamic value to be picked from a list of airports for example random(Jfk,mco,ord,den,sfo,lhr,las) should return one each time the script runs
Could you open a github issue to track it? https://github.com/WPO-Foundation/webpagetest/issues
Reference URL's