Add driverData property to the base driver class
MODIFY
lib/basedriver/driver.js
lib/basedriver/driver.js
@@ -64,6 +64,18 @@ class BaseDriver extends MobileJsonWireProtocol {
};
}
+ /**
+ * This property is used by AppiumDriver to store the data of the
+ * specific driver sessions. This datacan be later used to adjust
+ * properties for driver instances running in parallel.
+ * Override it in inherited driver classes if necessary.
+ *
+ * @return {object} Driver properties mapping
+ */
+ get driverData () {
+ return {};
+ }
+
/*
* make eventHistory a property and return a cloned object so a consumer can't
* inadvertently change data outside of logEvent

Add driverData property to the base driver class (#132)