Slide 54
Slide 54 text
Firefox HAR
'use strict';
const webdriver = require('selenium-webdriver');
const firefox = require('selenium-webdriver/firefox');
const profile = new firefox.Profile();
// HAR export - see http://www.softwareishard.com/blog/har-export-trigger/
profile.setPreference('extensions.netmonitor.har.enableAutomation', true);
profile.setPreference('extensions.netmonitor.har.contentAPIToken',
'supersecrettoken');
profile.setPreference('extensions.netmonitor.har.autoConnect', true);
profile.setPreference('devtools.netmonitor.har.includeResponseBodies', false);
// Download from the version page, the default URL shows wrong latest version
// https://addons.mozilla.org/sv-se/firefox/addon/har-export-trigger/versions/?
page=1#version-0.5.0-beta.10
profile.addExtension('har_export_trigger-0.5.0-beta.10-fx.xpi');
1/3