Created
February 3, 2017 09:40
-
-
Save devhero/bb45cc2c879307fd2ab1ce080d9345bb to your computer and use it in GitHub Desktop.
selenium firefox profile plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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