feat: print comparison of driver and appium basedriver versions
MODIFY
lib/appium.js
lib/appium.js
@@ -85,11 +85,20 @@ class AppiumDriver extends BaseDriver {
.map(([id, driver]) => ({id, capabilities: driver.caps}));
}
- printNewSessionAnnouncement (driverName, driverVersion) {
- const introString = driverVersion
+ printNewSessionAnnouncement (driverName, driverVersion, driverBaseVersion) {
+ log.info(driverVersion
? `Appium v${APPIUM_VER} creating new ${driverName} (v${driverVersion}) session`
- : `Appium v${APPIUM_VER} creating new ${driverName} session`;
- log.info(introString);
+ : `Appium v${APPIUM_VER} creating new ${driverName} session`
+ );
+ log.info(`Checking BaseDriver versions for Appium and ${driverName}`);
+ log.info(AppiumDriver.baseVersion
+ ? `Appium's BaseDriver version is ${AppiumDriver.baseVersion}`
+ : `Could not determine Appium's BaseDriver version`
+ );
+ log.info(driverBaseVersion
+ ? `${driverName}'s BaseDriver version is ${driverBaseVersion}`
+ : `Could not determine ${driverName}'s BaseDriver version`
+ );
}
/**
@@ -146,7 +155,7 @@ class AppiumDriver extends BaseDriver {
driver: InnerDriver,
version: driverVersion
} = this._findMatchingDriver(this.driverConfig, desiredCaps);
- this.printNewSessionAnnouncement(InnerDriver.name, driverVersion);
+ this.printNewSessionAnnouncement(InnerDriver.name, driverVersion, InnerDriver.baseVersion);
if (this.args.sessionOverride) {
await this.deleteAllSessions();

feat: print comparison of driver and appium basedriver versions