Unable to trigger events using WPT script
|
08-15-2014, 01:48 AM
Post: #1
|
|||
|
|||
Unable to trigger events using WPT script
I am trying to script the following:
1. navigate http://www.avis.co.uk 2. exec document.getElementById('hire-search').click() 3. exec document.getElementById('hire-search').value='LHR' I am not getting the map overlays on steps 2 & 3. It seems WPT is not triggering relevant events. Can someone please give suggestion on how can I get map overlays to work using WPT script ? Thanks, Avi |
|||
08-18-2014, 09:47 PM
(This post was last modified: 08-18-2014 09:47 PM by cshashank.)
Post: #2
|
|||
|
|||
RE: Unable to trigger events using WPT script
(08-15-2014 01:48 AM)nccgroup_avi Wrote: I am trying to script the following: Try to use Javascript. jvoid(document.getElementById("hire-search").value='LHR' |
|||
08-19-2014, 02:54 AM
Post: #3
|
|||
|
|||
RE: Unable to trigger events using WPT script
If you want to wait for something to happen you need to turn that last exec into an execAndWait. Otherwise it's not going to report anything and will just exit. You also need to either use a "combinesteps" command at the beginning or put the first navigate into a logdata 0/logdata 1 block so that only the overlay is measured.
|
|||
08-21-2014, 01:11 AM
(This post was last modified: 08-21-2014 01:25 AM by nccgroup_avi.)
Post: #4
|
|||
|
|||
RE: Unable to trigger events using WPT script
(08-19-2014 02:54 AM)pmeenan Wrote: Thanks for your reply Pat! Tried following code but did not work: Finally got this working with jquery calls with screenshots and video: http://www.webpagetest.org/result/140820...5c735280f/ Code: combineSteps Thanks everyone ! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)