MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - selectValue equivalent on browsers other than IE

WebPagetest Forums

Full Version: selectValue equivalent on browsers other than IE
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to script selecting a value in the dropdown list. As per the doc

selectValue id=email label=foo@bar.com

would work. However how do I do the same for Chrome/FF?
Use exec combined with plain old JS is probably your best bet. That way you can debug it locally in dev tools to make sure it works.

Something like:

exec document.getElementById("email").selectedIndex = 5
(06-05-2014 12:26 AM)pmeenan Wrote: [ -> ]Use exec combined with plain old JS is probably your best bet. That way you can debug it locally in dev tools to make sure it works.

Something like:

exec document.getElementById("email").selectedIndex = 5

Thank you for that pointer. That works! Appreciate your prompt response as always
Reference URL's