Skip to content

Commit

Permalink
fix(benchpress): should still support selenium_webdriver < 3.6.0 (ang…
Browse files Browse the repository at this point in the history
  • Loading branch information
marclaval authored and alexeagle committed Jan 11, 2018
1 parent 00300f6 commit 9b84a32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class SeleniumWebDriverAdapter extends WebDriverAdapter {
capabilities(): Promise<{[key: string]: any}> {
return this._driver.getCapabilities().then((capsObject: 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);
}
return localData;
Expand Down

0 comments on commit 9b84a32

Please sign in to comment.