Fix incorrect identifying of unprefixed caps
MODIFY
lib/basedriver/capabilities.js
lib/basedriver/capabilities.js
@@ -76,7 +76,7 @@ function stripAppiumPrefixes (caps) {
const prefixedCaps = _.filter(_.keys(caps), cap => `${cap}`.startsWith(prefix));
const badPrefixedCaps = [];
const unprefixedCaps = _.filter(_.keys(caps), (cap) => (
- `${cap}`.includes(':') && !isStandardCap(cap)
+ !cap.includes(':') && !isStandardCap(cap)
));
// Strip out the 'appium:' prefix

Fix incorrect identifying of unprefixed caps (#157)