I'm writing my test cases in Windows7 with Ruby (v1.9.3-p194).
Please, note that I want to specify Firefox binary path when using RemoteWebDriver, not FirefoxDriver.
Here is the command line I used to start Selenium server 2.25.0:
"%JAVA_HOME%\bin\java" -jar selenium-server-standalone.jar
And here is the Ruby code I used to initialize webdriver in my test suite:
@capa = Selenium::WebDriver::Remote::Capabilities.firefox
@capa[:firefox_binary] = "D:\FirefoxStuff\FF13.0.1\firefox.exe"
@remote_server_url = "http://127.0.0.1:4444/wd/hub"
@driver = Selenium::WebDriver.for(:remote, {:url => @remote_server_url, :desired_capabilities => @capa})
However when I execute the test case, an error says
Selenium::WebDriver::Error::UnknownError: Cannot find firefox binary in PATH.
So, it's obvious my binary path specification is not working.
Does anybody know how to achieve that besides setting my PATH?