har

How to capture all requests made by page in webdriver? Is there any alternative to Browsermob?

萝らか妹 提交于 2019-11-28 04:10:19
I am using Selenium2/WebDriver to test my web applications. All the tests are written in Java and run with Maven. While opening a page with webdriver I'd like to capture all the requests made by page (images, js and css files, etc). I use this data mainly for two reasons checking for 404 (and other errors) in calls checking if analytics code is working (checking if it's sending proper requests) Depending on the project I use either Firebug with Netexport or Browsermob proxy. In both cases I can easily obtain a HAR (Html ARchive) file, parse it and extract the data I want. Here's the problem: I

How to capture all requests made by page in webdriver? Is there any alternative to Browsermob?

与世无争的帅哥 提交于 2019-11-27 05:17:00
问题 I am using Selenium2/WebDriver to test my web applications. All the tests are written in Java and run with Maven. While opening a page with webdriver I'd like to capture all the requests made by page (images, js and css files, etc). I use this data mainly for two reasons checking for 404 (and other errors) in calls checking if analytics code is working (checking if it's sending proper requests) Depending on the project I use either Firebug with Netexport or Browsermob proxy. In both cases I