mirror of
https://github.com/appium/appium.git
synced 2026-10-29 04:36:39 +08:00
Add driverData property to the base driver class (#132)
This commit is contained in:
committed by
Isaac A. Murchie
parent
78acb13716
commit
a693ac4796
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user