Export Chrome Network Logs to HAR from ChromeDriver(2)

1,368 views
Skip to first unread message

Sara Greenberg

unread,
Jul 3, 2013, 11:50:14 AM7/3/13
to seleniu...@googlegroups.com
I am trying to export the network panel logs from Chrome in a HAR file in a Java application. I'm able to do this manually by going to Chrome's Developer Tools, Network Panel, then right-clicking and selecting Export. Is there a way to do this using options or capabilities?

I am able to do this with the FirefoxDriver along with the Firebug and NetExports extensions, but unfortunately when I export the application as an executable jar,the FirefoxDriver refuses to open URLs. I've only had success using ChromeDriver. I've updated to ChromeDriver2, but I'm still not sure how to go about this.

Sara Greenberg

unread,
Jul 3, 2013, 3:39:38 PM7/3/13
to seleniu...@googlegroups.com
Just wanted to follow up: I was able to fix the issue with Firefox; I had to downgrade to Firefox 15, and downgrade my firebug to a compatible version. No idea why it was still able to run from Eclipse but not as an executable Jar file. In any case, if anyone does have any insight into how to do this in Chrome I am still interested- I've noticed ChromeDriver is faster than FirefoxDriver. Thanks!

Martin Woit

unread,
Nov 11, 2014, 9:32:47 AM11/11/14
to seleniu...@googlegroups.com
Hi Sara,

did you found a solution for exporting har files via chromedriver?


Krishnan Mahadevan

unread,
Nov 11, 2014, 8:58:33 PM11/11/14
to Selenium Users

Why not use a proxy server such as browsermobproxy to get to the har files ?

On Nov 12, 2014 7:14 AM, "Martin Woit" <marti...@gmail.com> wrote:
Hi Sara,

did you found a solution for exporting har files via chromedriver?


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8d495a8c-92c7-46c7-ad81-92e00bf7b6cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oscar Rieken

unread,
Nov 12, 2014, 7:20:35 AM11/12/14
to seleniu...@googlegroups.com
you can use javascript to get the web timings as a string or json then just convert that to a har

Reply all
Reply to author
Forward
0 new messages