MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / check

Method check

java/src/org/openqa/selenium/remote/Augmenter.java:124–134  ·  view source on GitHub ↗
(String capabilityName)

Source from the content-addressed store, hash-verified

122 }
123
124 private Predicate<Capabilities> check(String capabilityName) {
125 return caps -> {
126 Require.nonNull("Capability name", capabilityName);
127
128 Object value = caps.getCapability(capabilityName);
129 if (value instanceof Boolean && !((Boolean) value)) {
130 return false;
131 }
132 return value != null;
133 };
134 }
135
136 /**
137 * Enhance the interfaces implemented by this instance of WebDriver if that instance is a {@link

Callers 1

addDriverAugmentationMethod · 0.95

Calls 2

nonNullMethod · 0.95
getCapabilityMethod · 0.65

Tested by

no test coverage detected