获取Firefox中扩展的附加ID [英] Get add-on id of extensions in Firefox
问题描述
我想在浏览器选项卡中打开扩展作为普通的html页面,以便可以使用Selenium WebDriver将其自动化。在firefox中,可以使用这样的链接- moz-extension://f1b30486-cd88-4319-bbb5-d5e387103414/popup.html
完成。
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
.
问题是我没有在Firefox中找到可以找到所有扩展名的ID的方式**。安装扩展程序并加载带有URL
moz-extension://f1b30486-cd88-4319-bbb5-d5e387103414/congratulations.html
的页面时,将获得上面使用的ID。像一个欢迎页面。
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.
Firefox中是否可以通过任何方式获取附加ID或获取上述网址所有扩展。
推荐答案
打开 about:内存
。点击显示内存报告中的衡量。在主要流程部分中,向下滚动到其他度量。在那里,您将找到已安装的(活动的)扩展程序,其名称和ID显示为 baseURL = moz-extension:// [ random-ids ] 。
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].
此方法适用于Firefox和Firefox for Android。请注意,仅显示已启用的扩展名。
This method works for both Firefox and Firefox for Android. Note that only enabled extensions are shown.
这篇关于获取Firefox中扩展的附加ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!