add har_export_trigger
parent
647a7744fb
commit
88511b62aa
|
|
@ -26,12 +26,15 @@ class Grattoir(object):
|
||||||
self._driver = None
|
self._driver = None
|
||||||
p_path = tor_profile()
|
p_path = tor_profile()
|
||||||
profile = firefox.firefox_profile.FirefoxProfile(profile_directory=p_path)
|
profile = firefox.firefox_profile.FirefoxProfile(profile_directory=p_path)
|
||||||
|
profile.set_preference("devtools.toolbox.selectedTool", "netmonitor")
|
||||||
|
profile.set_preference("devtools.netmonitor.persistlog", True)
|
||||||
b_path = tor_browser_binary_path()
|
b_path = tor_browser_binary_path()
|
||||||
binary = firefox.firefox_binary.FirefoxBinary(firefox_path=b_path)
|
binary = firefox.firefox_binary.FirefoxBinary(firefox_path=b_path)
|
||||||
o = firefox.options.Options()
|
o = firefox.options.Options()
|
||||||
o.profile = profile
|
o.profile = profile
|
||||||
o.binary = binary
|
o.binary = binary
|
||||||
self._driver = firefox.webdriver.WebDriver(options=o)
|
self._driver = firefox.webdriver.WebDriver(options=o)
|
||||||
|
self._driver.install_addon("assets/har_export_trigger-0.6.2resigned1.xpi")
|
||||||
return self._driver
|
return self._driver
|
||||||
|
|
||||||
def __exit__(self, exc_type, exc_value, exc_tb):
|
def __exit__(self, exc_type, exc_value, exc_tb):
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue