I am able to capture Json
data from a website using "selenium.captureNetworkTraffic("json")"
.
I want to filter
the results for a particular grid in my website..(My website contains many grids
).
How to filter the data for a grid of the website ?
And also while using DefaultSelenium
, I want to wait for 1 minute
after opening the website.
my code :
SeleniumServer srvr = new SeleniumServer();
srvr.start();
String site="website_name";
DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*firefox",site );
selenium.wait();
selenium.start("captureNetworkTraffic=true");
selenium.open("/");
String trafficOutput = selenium.captureNetworkTraffic("json");
System.out.println(trafficOutput);
How to do that ?