public class DefaultCapabilityMatcher extends java.lang.Object implements CapabilityMatcher
The default capability matcher will look at all the key from the request do not start with _ and will try to find a node that has at least those capabilities.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
GRID_TOKEN |
private static java.util.logging.Logger |
log |
protected java.util.List<java.lang.String> |
toConsider |
Constructor and Description |
---|
DefaultCapabilityMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addToConsider(java.lang.String capabilityName) |
(package private) org.openqa.selenium.Platform |
extractPlatform(java.lang.Object o) |
boolean |
matches(java.util.Map<java.lang.String,java.lang.Object> nodeCapability,
java.util.Map<java.lang.String,java.lang.Object> requestedCapability) |
private static final java.util.logging.Logger log
private static final java.lang.String GRID_TOKEN
protected final java.util.List<java.lang.String> toConsider
public void addToConsider(java.lang.String capabilityName)
capabilityName
- capability name to have grid match requested with test slotpublic boolean matches(java.util.Map<java.lang.String,java.lang.Object> nodeCapability, java.util.Map<java.lang.String,java.lang.Object> requestedCapability)
matches
in interface CapabilityMatcher
org.openqa.selenium.Platform extractPlatform(java.lang.Object o)