I need to run portable Firefox using RemoteWebDriver, but facing the problem:
Here is code for a local run which works perfectly:
FirefoxProfile profile = new FirefoxProfile();
WebDriver driver = new FirefoxDriver(
new FirefoxBinary(
new File(System.getProperty("user.dir"),
"/tools/FirefoxPortable/FirefoxPortable.exe")),profile);
driver.get("http://google.com");
How can I run it on local server? With something like:
WebDriver driver = new RemoteWebDriver(DesiredCapabilities.firefox());
driver.get("http://google.com");