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

This commit is contained in:
Mykola Mokhnach
2017-08-14 08:29:54 -04:00
committed by Isaac A. Murchie
parent 78acb13716
commit a693ac4796
+12
View File
@@ -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