From 9b84a325ff2907e8b5848794326e7957532bf6cf Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Thu, 11 Jan 2018 18:46:11 +0100 Subject: [PATCH] fix(benchpress): should still support selenium_webdriver < 3.6.0 (#21477) PR Close #21477 --- packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts b/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts index 0da7b5e5eb..3f7f7c4aa1 100644 --- a/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts +++ b/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts @@ -34,7 +34,7 @@ export class SeleniumWebDriverAdapter extends WebDriverAdapter { capabilities(): Promise<{[key: string]: any}> { return this._driver.getCapabilities().then((capsObject: any) => { const localData: {[key: string]: any} = {}; - for (const key of capsObject.keys()) { + for (const key of Array.from((>capsObject).keys())) { localData[key] = capsObject.get(key); } return localData;