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:
parent
74dbf7bad5
commit
6040ee39eb
|
@ -34,7 +34,9 @@ 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} = {};
|
||||||
capsObject.forEach((value: any, key: string) => { localData[key] = value; });
|
for (const key of capsObject.keys()) {
|
||||||
|
localData[key] = capsObject.get(key);
|
||||||
|
}
|
||||||
return localData;
|
return localData;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue