Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
sudo wget -O /usr/local/sbin/install-mozilla-addon http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon
sudo chmod +x /usr/local/sbin/install-mozilla-addon
sudo install-mozilla-addon https://addons.mozilla.org/firefox/downloads/latest/5369/addon-5369-latest.xpi
sudo install-mozilla-addon https://addons.mozilla.org/firefox/downloads/latest/1843/addon-1843-latest.xpi
wget http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
java -jar selenium-server-standalone-2.45.0.jar
extensions:
Behat\MinkExtension\Extension:
selenium2:
browser: firefox
wd_host: 'app url'
capabilities: { 'firefox': {'profile':'path/to/your/zip file'} }
References:
From my point of view, sideloading and activating addons is not supported anymore. At least I could not find a way. However, what you still can do is, to add an addon to your firefox profile, but you have to manually activate it at first. This bit of automation makes everything at least a bit nicer.
You can use the following script:
One more hint: To always download the latest xpi from the addon store you can use the following URL:
https://addons.mozilla.org/firefox/downloads/latest/<plugin-name>/latest.xpi
You can identify the plugin name from the URL in the store:
https://addons.mozilla.org/de/firefox/addon/foxyproxy-standard/
E.g .for the foxyproxy plugin you should use "foxyproxy-standard"
https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/latest.xpi