Check shouldValidate before validating
MODIFY
lib/basedriver/capabilities.js
lib/basedriver/capabilities.js
@@ -127,7 +127,9 @@ function parseCaps (caps, constraints = {}, shouldValidateCaps = true) {
stripAppiumPrefixes(firstMatchCaps);
}
+ if (shouldValidateCaps) {
requiredCaps = validateCaps(requiredCaps, constraints);
+ }
// Validate all of the first match capabilities (see spec #5)
let validatedFirstMatchCaps = allFirstMatchCaps.map((firstMatchCaps) => {

Check shouldValidate before validating (#162)