How do I send additional profile preferences to firefox in docker container (standalone-firefox )

21 views
Skip to first unread message

Robert

unread,
Dec 9, 2016, 5:43:46 AM12/9/16
to Selenium Users
Hi!

I have succesfully run tests using the docker container standalone-firefox (https://hub.docker.com/r/selenium/standalone-firefox/).

But, is it possible to send firefox profile preferences during start of the container?
When doing this in code, we can as an example use this code to add preferences when starting Firefox.

FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("network.proxy.http", "localhost");
WebDriver driver = new FirefoxDriver(firefoxProfile);

But how do we do it when using docker?

Regards
Robert
Reply all
Reply to author
Forward
0 new messages