From bc53dfba456956ad38b3e47f6ad0a847dec72e1a Mon Sep 17 00:00:00 2001 From: Zdravko Branzov Date: Fri, 16 Aug 2019 11:32:08 +0300 Subject: [PATCH] fix: xml source generation --- lib/appium-driver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/appium-driver.ts b/lib/appium-driver.ts index ab1f9d7..fabc4a2 100644 --- a/lib/appium-driver.ts +++ b/lib/appium-driver.ts @@ -579,7 +579,7 @@ export class AppiumDriver { } public async source() { - return await this._webio.source(); + return await this._driver.source(); } public async sessionId() { @@ -714,7 +714,7 @@ export class AppiumDriver { const path = resolvePath(this._args.reportsPath, fileName); const xml = await this.source(); - writeFileSync(path, xml.value, 'utf8'); + writeFileSync(path, xml, 'utf8'); } public async logDeviceLog(fileName, logType: LogType, filter: string = undefined) {