WebPagetest Forums
scripting, button click not working - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: scripting, button click not working (/showthread.php?tid=15077)



scripting, button click not working - S9S - 10-09-2017 02:05 AM

Hello,

I am trying to test page navigation using form submit, here is my html block for button selection
Code:
<form class="pre-form" name="pre-form"><input placeholder="e.g. organic chef, app developer"><button><svg><use xlink:href="/resources/img/sprites/base.svg#arrow"></use></svg></button><svg><use xlink:href="/resources/img/sprites/base.svg#search"></use></svg><h6>Search for a .com now</h6></form>
------------------------------------------

Script:
-------------------
logData 1
// bring up the login screen
navigate https://qa-test-smsi.com/

logData 1
setValue name=search vpntest
submitForm className=pre-form


the above script not working, How can I submit the form with click.

any suggestions?

Thanks