Get add-on id of extensions in Firefox

一世执手 提交于 2019-12-07 05:11:07

问题


I want to open extensions in browser tab as a normal html page so that I can automate it using selenium WebDriver. In firefox this can be done using link like this - moz-extension://f1b30486-cd88-4319-bbb5-d5e387103414/popup.html.

But the problem is that I am not finding a way in Firefox by which I can locate the id for all extensions**. The id used above is obtained when the extension is installed and a page with url moz-extension://f1b30486-cd88-4319-bbb5-d5e387103414/congratulations.html is loaded like a welcome page.

Is there any way in Firefox to get the add-on id or get urls like above for all extensions.


回答1:


Open about:memory. Click "measure" in Show memory reports. In the Main Process section, scroll down to Other Measurements. There you will find the installed (active) extensions with their names and their ids displayed as baseURL=moz-extension://[random-ids].

This method works for both Firefox and Firefox for Android. Note that only enabled extensions are shown.



来源:https://stackoverflow.com/questions/48056506/get-add-on-id-of-extensions-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!