Do not use static yet. Still experimental.
MODIFY
lib/basedriver/driver.js
lib/basedriver/driver.js
@@ -209,11 +209,6 @@ class BaseDriver extends Protocol {
return true;
}
- static DRIVER_PROTOCOL = {
- W3C: 'W3C',
- MJSONWP: 'MJSONWP',
- };
-
isMjsonwpProtocol () {
return this.protocol === BaseDriver.DRIVER_PROTOCOL.MJSONWP;
}
@@ -466,6 +461,11 @@ class BaseDriver extends Protocol {
}
}
+BaseDriver.DRIVER_PROTOCOL = {
+ W3C: 'W3C',
+ MJSONWP: 'MJSONWP',
+};
+
for (let [cmd, fn] of _.toPairs(commands)) {
BaseDriver.prototype[cmd] = fn;
}

MODIFY
package.json
package.json
"keywords": [
"appium"
],
- "version": "3.12.0",
+ "version": "3.13.0",
"author": "appium",
"license": "Apache-2.0",
"repository": {

Do not use static yet. Still experimental. (#286)