I'm dealing right now with following problem:
My Selenium Grid instance should connect few nodes which are in different locations and I would like to run each test in every location. How can I point to Selenium Grid that it should choose one node from each location and send test there? I tried manipulating browser name or platforms (ex. naming it firefox-pl/firefox-fr or windows-pl/windows-fr) but I received always following exception:
Selenium::WebDriver::Error::UnknownError:
Error forwarding the new session cannot find
and I found out that those values are not changeable.
Is there any other method to do it? I would not like to change browser or its version, because nature of those tests is to compare network responses on different locations and different browsers can change it.
When you start the node and you are specifying the capabilities, you might consider setting maxInstances. This value controls the number of concurrent instances of that browser which can be opened on that node. If you set this to 1 - you can run tests in parallel against the Grid but only one browser will open at a time on each node.
Sounds like you're looking to run tests in parallel, testng is a great tool to help you setup. Take a look at the following link
http://www.deepshiftlabs.com/sel_blog/?p=1932&lang=en-us
I also come across same situation and I just think of the node and did as follows.
setting the application name in the node is hidden features in selenium. Now just test and enjoy.