diff --git a/test/automation/src/code.ts b/test/automation/src/code.ts index 33eba97ba52..f7cbcda189f 100644 --- a/test/automation/src/code.ts +++ b/test/automation/src/code.ts @@ -140,7 +140,7 @@ async function poll( export class Code { private _activeWindowId: number | undefined = undefined; - driver: IDriver; + readonly driver: IDriver; constructor( private client: IDisposable, @@ -173,16 +173,12 @@ export class Code { async startTracing(name: string): Promise { const windowId = await this.getActiveWindowId(); - if (typeof this.driver.startTracing === 'function') { // added only in 1.64 - return await this.driver.startTracing(windowId, name); - } + return await this.driver.startTracing(windowId, name); } async stopTracing(name: string, persist: boolean): Promise { const windowId = await this.getActiveWindowId(); - if (typeof this.driver.stopTracing === 'function') { // added only in 1.64 - return await this.driver.stopTracing(windowId, name, persist); - } + return await this.driver.stopTracing(windowId, name, persist); } async waitForWindowIds(accept: (windowIds: number[]) => boolean): Promise {