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
This commit is contained in:
Alex Eagle 2018-01-08 12:24:49 -08:00 committed by Kara Erickson
parent 74dbf7bad5
commit 6040ee39eb
1 changed files with 3 additions and 1 deletions

View File

@ -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;
});
}