I install Selenium Grid 2 (selenium-server-standalone-2.1.0) on Windows 7 (I also tried Windows Server 2008) as 64-bit. I am testing WebDriver locally and everything is fine.
I start the hub using
java -jar selenium-server-standalone-2.1.0.jar -role hub
Adding a webDriver node for FireFox works, but everything else, like Google Chrome, throws an IllegalOperation exception.
For instance:
I am trying to add node for Chrome:
java -jar selenium-server-standalone-2.1.0.jar -role webDriver -hub http://127.0.0.1-00-00444 -browser browserName = chrome platform = windows version = 12 -port 5556
This shows how node is on the hub when you go to http: // localhost: 4444 / grid / console
I am adding code to call webDriver, for example:
DesiredCapabilities capability = new DesiredCapabilities(); capability.SetCapability(CapabilityType.Platform, "windows"); capability.SetCapability(CapabilityType.Version, "12"); capability.SetCapability(CapabilityType.BrowserName, "chrome"); IWebDriver driver = new RemoteWebDriver(new Uri("http://127.0.0.1:4444/wd/hub"), capability);
I get the exception almost immediately:
{"cannot find: {platform = windows, browserName = chrome, version = 12}"}
It seems that node is not even found. I'm new to this, is that what I missed in setting up? (Internet Explorer does the same, and changing versions don't seem to help).
I searched for hours and hours, but nothing matching the exception seems to be my problem.