har-export-trigger icon indicating copy to clipboard operation
har-export-trigger copied to clipboard

Get HAR from Firefox on Android

Open soulgalore opened this issue 5 years ago • 5 comments

Hi @janodvarko since a while ago Firefox can be used through Geckodriver on a Android phone. Installing HAR-export-trigger works fine but getting the HAR doesn't work. I guess the problem is that devtools and that the network tab needs to be open. I wanted to check if something changed the last year in the Firefox, hoping that maybe there could be a fix nowadays to avoid having devtools open?

Best Peter

soulgalore avatar Dec 30 '19 19:12 soulgalore

Hey Peter! The Network panel doesn't have to be activated, but the DevTools Toolbox still needs to be opened to start up the backend for intercepting HTTP.

Honza

janodvarko avatar Jan 02 '20 08:01 janodvarko

Hi Jan, ah ok, I was running 0.6.0 but upgraded to 0.6.1 and I guess then that fixes the problem, let me try.

Thanks!

soulgalore avatar Jan 08 '20 11:01 soulgalore

Hi again @janodvarko so I upgraded to 0.6.1 and tested on my phone but didn't get it to work, and I guess it is because there's no devtools toolbox on Android? Do you know if someone tried running it on a phone?

Best Peter

soulgalore avatar Jan 09 '20 07:01 soulgalore

The toolbox is not available on Android (devtools/client is not bundled on those devices), you'd have to use remote debugging to record HAR. But since you mention Geckodriver, I guess the idea is to use this from automation?

janodvarko avatar Jan 09 '20 13:01 janodvarko

Yes exactly. Since latest release of Geckodriver it works fine to drive Firefox on your Android phone. We got it up and running now and last piece for me is to get a HAR :) We kind have parts of the information from the geckoProfiler but it would be great if it would work with the plugin.

soulgalore avatar Jan 10 '20 08:01 soulgalore