From 3be0a23ebfe3d4fb4aaaf328eaf9bddea1f9085e Mon Sep 17 00:00:00 2001 From: wgamboa <1@willi-gamboa.net> Date: Mon, 28 Mar 2011 11:59:06 -0700 Subject: [PATCH] Usage: browser .chain .session() .open('http://www.pcmag.com') .waitForPageToLoad() /* 'json|xml|txt' */ .captureNetworkTraffic('json', function(traffic) { fs.writeFile('traffic.json', traffic); }) .testComplete() .end(function(error) { }); --- lib/soda/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/soda/client.js b/lib/soda/client.js index 5a293b6..2d05495 100644 --- a/lib/soda/client.js +++ b/lib/soda/client.js @@ -1,4 +1,3 @@ - /*! * Soda - Client * Copyright(c) 2010 LearnBoost @@ -266,6 +265,7 @@ exports.commands = [ , 'assignId' , 'break' , 'captureEntirePageScreenshot' + , 'captureNetworkTraffic' , 'check' , 'chooseCancelOnNextConfirmation' , 'chooseOkOnNextConfirmation'