Can Selenium monitor XHR requests Can Selenium monitor XHR requests selenium selenium

Can Selenium monitor XHR requests


You can capture the network traffic with Selenium and then try get what you need for that

Selenium s = new DefaultSelenium(...);s.start("captureNetworkTraffic=true");s.open("http://www.google.com");String traffic = s.captureNetworkTraffic("json");

And then do your asserts by finding what you want in the traffic.