我有一个来自本地
的代码集firefox配置文件var makeFirefoxProfile = function (preferenceMap) {
var firefoxProfile = new FirefoxProfile("C:/Users/tam/AppData/Roaming/Mozilla/Firefox/Profiles/avbq6r8s.TamVo");
for (var key in preferenceMap) {
firefoxProfile.setPreference(key, preferenceMap[key]);
}
var firefoxIntegrationFile = "./extension/firefox_integration/sample.xpi";
firefoxProfile.addExtension(firefoxIntegrationFile);
return q.resolve({
browserName: 'firefox',
marionette: true,
firefox_profile: firefoxProfile
});
};
因此无法从本地和.xpi扩展名加载配置文件。我删除了个人资料路径,删除了addExtension,它正确设置了个人资料。
我怎么能这样做?