Skip to content

har export trigger does not work at all ... #54

Description

@alex4200

I tried the description given in the main page: http://www.softwareishard.com/blog/har-export-trigger/

and created the following script:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

profile = webdriver.FirefoxProfile()
profile.set_preference("devtools.netmonitor.har.contentAPIToken", True)
profile.set_preference("extensions.netmonitor.har.autoConnect", True)
profile.set_preference("devtools.netmonitor.har.enableAutoExportToFile", True)

driver = webdriver.Firefox(firefox_profile=profile)
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()

I downloaded the extension from this page and put it into the firefox extension folder (which I need to do later as the tests are running inside a docker image. So I need a way to copy and enable an extension without any firefox GUI), renamed as

harexporttrigger@getfirebug.com.xpi

However, after running the script, no har file or folder is being created.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions