From 6040ee39eb65512b39a262c15ba7a51588850908 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 8 Jan 2018 12:24:49 -0800 Subject: [PATCH] fix(benchpress): forward compat with selenium_webdriver 3.6.0 (#21399) This was a local mod in google3 introduced by cl 174212464 PR Close #21399 --- .../benchpress/src/webdriver/selenium_webdriver_adapter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts b/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts index 4aa0ad27e0..0da7b5e5eb 100644 --- a/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts +++ b/packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts @@ -34,7 +34,9 @@ export class SeleniumWebDriverAdapter extends WebDriverAdapter { capabilities(): Promise<{[key: string]: any}> { return this._driver.getCapabilities().then((capsObject: any) => { const localData: {[key: string]: any} = {}; - capsObject.forEach((value: any, key: string) => { localData[key] = value; }); + for (const key of capsObject.keys()) { + localData[key] = capsObject.get(key); + } return localData; }); }