>How the hub will know the node it will
>delegate the execution of the test?
It basically finds the first node that matches the requested
capabilities. Platform is a special case, but other than that it
matches browser name, version, and applicationName?? by string
comparison and no others.
If the node selection build in is not sufficient you can override it.
The easiest way to do that is to compile a class that implements
org.openqa.grid.internal.utils.CapabilityMatcher and make sure your
code is in the classpath before you start Selenium server with this
argument:
-capabilityMatcher:
(hub) a class implementing the CapabilityMatcher interface.
Defaults to
org.openqa.grid.internal.utils.DefaultCapabilityMatcher. Specify
the logic the hub will follow to define if a request can be
assigned to a node.Change this class if you want to have the
matching process use regular expression instead of exact match
for the version of the browser for instance.Al the nodes of a
grid instance wil use the same matcher, defined by the registry.