Package org.openqa.selenium.grid.data
Class DefaultSlotMatcher
java.lang.Object
org.openqa.selenium.grid.data.DefaultSlotMatcher
- All Implemented Interfaces:
Serializable
,SlotMatcher
Default matching implementation for slots, loosely based on the requirements for capability
matching from the WebDriver spec. A match is made if the following are all true:
- All non-extension capabilities from the
stereotype
match those in theCapabilities
being considered. - If the
Capabilities
being considered contain any of:- browserName
- browserVersion
- platformName
stereotype
must contain the same values.
One thing to note is that extension capabilities are not considered when matching slots, since the matching of these is implementation-specific to each driver.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(Capabilities stereotype, Capabilities capabilities)
-
Constructor Details
-
DefaultSlotMatcher
public DefaultSlotMatcher()
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceSlotMatcher
-