fix(benchpress): should still support selenium_webdriver < 3.6.0 (#21477)

PR Close #21477
This commit is contained in:
Marc Laval 2018-01-11 18:46:11 +01:00 committed by Alex Eagle
parent 00300f66e8
commit 9b84a325ff
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export class SeleniumWebDriverAdapter extends WebDriverAdapter {
capabilities(): Promise<{[key: string]: any}> { capabilities(): Promise<{[key: string]: any}> {
return this._driver.getCapabilities().then((capsObject: any) => { return this._driver.getCapabilities().then((capsObject: any) => {
const localData: {[key: string]: any} = {}; const localData: {[key: string]: any} = {};
for (const key of capsObject.keys()) { for (const key of Array.from((<Map<string, any>>capsObject).keys())) {
localData[key] = capsObject.get(key); localData[key] = capsObject.get(key);
} }
return localData; return localData;