Skip to content

Commit 3c6a506

Browse files
marclavalalexeagle
authored andcommitted
fix(benchpress): should still support selenium_webdriver < 3.6.0 (#21477)
PR Close #21477
1 parent b49d54e commit 3c6a506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/benchpress/src/webdriver/selenium_webdriver_adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class SeleniumWebDriverAdapter extends WebDriverAdapter {
3434
capabilities(): Promise<{[key: string]: any}> {
3535
return this._driver.getCapabilities().then((capsObject: any) => {
3636
const localData: {[key: string]: any} = {};
37-
for (const key of capsObject.keys()) {
37+
for (const key of Array.from((<Map<string, any>>capsObject).keys())) {
3838
localData[key] = capsObject.get(key);
3939
}
4040
return localData;

0 commit comments

Comments
 (0)