(String capabilityName)
| 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 |
no test coverage detected