The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error

Current time: 12-06-2019, 08:24 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Differences in .HAR files generated by selenium web driver with BrowserMob and webpag
06-08-2012, 03:11 AM
Post: #1
Differences in .HAR files generated by selenium web driver with BrowserMob and webpag

I have generated .HAR files using Selenium Web Driver with BrowserMob Proxy(SWD+BM) and by using I used HAR Storage to view these files. The following are the differences I found.

a. All the sizes and times(Load Time, DNS Time, Transfer Time etc.) shown in SWD+BM are less compared to WPT.

b. No. of resources by request(images, css, html etc. ), resources by size, domains by request, domains by size in SWD+BM are less in number or equal to(mostly less) when compared to WPT.

I have used Firefox browser for the both.

Why are these differences? Is there any architecture difference b/w these two?

The code I used for BMP is:

import org.browsermob.core.har.Har;
import org.browsermob.proxy.ProxyServer;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;

public class SeleniumWDBMHAR {

public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
ProxyServer server = new ProxyServer(4461);
// get the Selenium proxy object
org.openqa.selenium.Proxy proxy = server.seleniumProxy();
// configure it as a desired capability
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.PROXY, proxy);

// start the browser up
WebDriver driver = new FirefoxDriver(capabilities);



// get the HAR data
Har har = server.getHar();
String strFilePath = "Selenium_test.har";
FileOutputStream fos = new FileOutputStream(strFilePath);

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Differences in .HAR files generated by selenium web driver with BrowserMob and webpag - raghu.snist - 06-08-2012 03:11 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)