I use Browsermob Proxy get HTTP request url with selenium ,there are some page repeate,but use Fiddler it does not repeate .for example, I request a page,there are two request-url`String gburl="https://cart.gearbest.com/cart/index";
Har har=new Har();
String harName="mycart";
proxy.newHar(harName);
Thread.sleep(2000);
op.get(gburl, pageLoadTimeout);
Thread.sleep(2000);
har = proxy.getHar();`
this is the result https://cart.gearbest.com/cart/index INFO 2018-12-17-19:50:03(Log.java:43)https://css.gbtcdn.com/imagecache/gbw/js/3-aab95a6123b4.js INFO 2018-12-17-19:50:03(Log.java:43)https://glsdk.logsss.com/static/glbi.js INFO 2018-12-17-19:50:03(Log.java:43)https://glsdk.logsss.com/static/glsdk.js INFO 2018-12-17-19:50:03(Log.java:43)https://user.gearbest.com/message/unread-count?callback=jQuery33107503124582359648_1545047396823&time_zone_id=%2B8&_=1545047396825 INFO 2018-12-17-19:50:03(Log.java:43)https://cart.gearbest.com/cart/index
Comments
Post a Comment