WebPagetest Forums

Full Version: Using the API for Monitoring
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I'm looking to use webpagetest for monitoring our website, I'm planning to run a simple transaction using the scripting option available.

My Question is... From the results you are given i.e page_data.csv and requests.csv can anyone tell me how I can see if the transaction completed successfully? Ideally any way of alerting on a transaction that doesn't complete would be awesome.

Thanks
Matt
If you use a script and specify a DOM Element the test should return an error if the DOM element wasn't found. If you have a specific request that indicates a success then that would work as well.
(05-23-2012 01:59 AM)pmeenan Wrote: [ -> ]If you use a script and specify a DOM Element the test should return an error if the DOM element wasn't found. If you have a specific request that indicates a success then that would work as well.

Thanks Patrick, I'll take a look at that.

Another quick question for you do you know if it is possible to execute jquery when scripting?

i.e execAndWait $('#blah').click();
As long as the page has loaded jquery then yes. The script executes in the context of the page so anything available is fair game.
Reference URL's