fix(benchpress): should still support selenium_webdriver < 3.6.0 (#21477)
PR Close #21477
This commit is contained in:
parent
00300f66e8
commit
9b84a325ff
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue