Why do you want to start the node with a firefox profile?
With Selenium2 and onwards, the firefox profile is no longer an attribute of the test environment (the docker container in your case) but it’s an attribute of the test code.
So you should be passing in the firefox profile via the FirefoxOptions using a code snippet such as below (Please feel free to change it to use the URL of the Selenium server running in the docker container):
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;
import org.openqa.selenium.remote.RemoteWebDriver;
public class DynamicFirefoxProfile {
public static void main(String[] args) {
RemoteWebDriver driver = null;
ProfilesIni profilesIni = new ProfilesIni();
//Pass a new value via the JVM argument -Dprofile
//For e.g., to load a profile named "selenium" use -Dprofile=selenium
String profileName = System.getProperty("profile", "IdontExist");
FirefoxProfile profile = profilesIni.getProfile(profileName);
FirefoxOptions options = new FirefoxOptions();
if (profile != null) {
options.setProfile(profile);
}
try {
driver = new FirefoxDriver(options);
driver.get("http://www.google.com");
} finally {
if (driver != null) {
driver.quit();
}
}
}
}
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4dc1ba3b-8866-4270-8b90-e821bd287386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0c601112-6657-4809-a4fc-9d273a6961ed%40googlegroups.com.