Skip to content

Instantly share code, notes, and snippets.

@devhero
Created February 3, 2017 09:40
Show Gist options
  • Save devhero/bb45cc2c879307fd2ab1ce080d9345bb to your computer and use it in GitHub Desktop.
Save devhero/bb45cc2c879307fd2ab1ce080d9345bb to your computer and use it in GitHub Desktop.
selenium firefox profile plugin
ffp = webdriver.FirefoxProfile()
# for example load websocket monitor
websocket = os.path.join(os.getcwd(), 'path/websocket_monitor-0.6.4-fx.xpi')
ffp.add_extension(websocket)
context.browser = webdriver.Firefox(firefox_profile=ffp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment