Customized CapabilityMatcher

By default, the hub will use the org.openqa.grid.internal.utils. DefaultCapabilityMatcher class to match the requested node. If you do not like the implementation logic of the DefaultCapabilityMatcher class, you can extend the class, implement your own CapabilityMatcher class, and provide your own logic in it.

Once developed, you can ask the hub to use that class to match the capabilities with the nodes, using a configuration parameter named capabilityMatcher. The command to achieve this is as follows:

java -jar selenium-server-standalone-3.12.0.jar -role hub -port 1111 -capabilityMatcher com.yourcomp.CustomCapabilityMatcher

The hub will use the logic defined in your CustomCapabilityMatcher class to identify the nodes to be assigned to the test-script requests.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.130.31