MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - script way to submit login form doesn't work

WebPagetest Forums

Full Version: script way to submit login form doesn't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was try to using the script way to login my website, here is the script:

setEventName launch
sleep 5
selectValue id=environment 2: Staging
setvalue id=email
setvalue id=password 123456
setEventName load
execAndWait document.querySelector('.btn-submit').click()

I am seeing the value is set properly to the email and password element, but seems the last step to submit is not executed. Don't know what's wrong. But if I executed the last script using chrome dev tools under Console tab, the login button is submited and login go through. Don't know why it is not proceed by webpagetest, any help is appreciated.
I tend to use exec and DOM selectors to target elements rather than WPTs own scripting for example

Reference URL's