har-export-trigger icon indicating copy to clipboard operation
har-export-trigger copied to clipboard

How to install the firefox add-on manually, by command line?

Open alex4200 opened this issue 6 years ago • 2 comments

I am performing selenium tests and use a firefox instance that is part of a docker image. Therefore I cannot just 'open firefox' and 'click here' and 'click there'. I require a programatical way to install the extension.

For example, can I just copy files in some directories in the firefox' profile folder or something?

I cannot use the suggested web-ext tool, as the firefox instance is started by selenium itself.

Thanks a lot

alex4200 avatar Aug 27 '18 06:08 alex4200

Hi @alex4200 if you use Selenium, it has support for adding e extension. What flavour of Selenium are you using? In NodeJS you do it like this: https://github.com/sitespeedio/browsertime/blob/master/lib/firefox/webdriver/index.js#L58-L61

Best Peter

soulgalore avatar Nov 24 '18 12:11 soulgalore

Hi @soulgalore; I am using python-selenium. But at the moment I do not require this feature anymore.

Feel free to close this ticket.I can reopen it if needed...

alex4200 avatar Nov 29 '18 11:11 alex4200