Looking at the Selenium 2.0 (alpha 7) source it appears to be possible to set the Ff profile of the RemoteWebDriver via the capabilities API. Yet it is not clear how one would do it.
Any ideas?
FirefoxProfile profile = new FirefoxProfile();
// OR
// FirefoxProfile profile = new FirefoxProfile(new File(...));
// Init your profile
// OR
// If you created the profile by providing a path to it,
// the path should refer to the one on the host of the WD server
DesiredCapabilities caps = DesiredCapabilities.firefox();
caps.setCapability(FirefoxDriver.PROFILE, profile);
WebDriver driver = new RemoteWebDriver(new URL("http://<....>:4444/wd/hub"), caps);
You can assign to each Selenium grid 2 node a specific firefox profile, just set the webdriver.firefox.profile property:
java -jar selenium-server-standalone-2.37.0.jar -Dwebdriver.firefox.profile=my-profile -role node -hub http://mydomain.com:4444/grid/register
http://automatictester.wordpress.com/2013/04/07/selenium-running-custom-firefox-profile/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With