Adding second instance of Firefox with Marionette (change port)

随声附和 提交于 2019-12-06 05:55:38

You have to use different profiles to make firefox listen on different ports.
Edit <path-to-profile>/prefs.js add the following and save when firefox is not using this profile;

user_pref("marionette.defaultPrefs.port", 2829);

Now, start firefox as;

firefox -marionette --profile <path-to-profile> --new-instance&

To create a new profile;

$ mkdir new_profile
$ firefox --profile new_profile --new-instance

and close firefox. Now you'll have new_profile/prefs.js

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