debugging - Chrome Debugger Api Attach Extension Error -


task: debug other extensions using chrome debugger api.

expected output: http request logs made other installed extensions.

method: running chrome webdriver selenium in python setting flag chromeopts.add_argument('--silent-debugger-extension-api' ). inside extension, on event chrome.management.oninstalled using following code

chrome.debugger.attach({ extensionid: info.id }, version, onattach.bind(null, info.id)); chrome.debugger.sendcommand({ extensionid: info.id }, "network.enable"); chrome.debugger.onevent.addlistener(onevent);

error: cannot access chrome-extension:// url of different extension

to debug background page of extension, need set 2 flags:

  • --silent-debugger-extension-api
    allow debugging of background pages.
  • --extensions-on-chrome-urls
    allow debugging of other extensions.

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -