Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Update FrameManager.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Jul 13, 2022
1 parent 74742c0 commit 7e02075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/puppeteer/lib/FrameManager.ts
Expand Up @@ -44,7 +44,7 @@ Super.prototype.clickAndWaitForRequest = function (selector: string, predicate:
};

let promises: [Promise<HTTPRequest>, Promise<void>] = [
((this._frameManager as any)._page as Page).waitForRequest((typeof predicate === 'function') ? predicate : callback, options),
this.page().waitForRequest((typeof predicate === 'function') ? predicate : callback, options),
this.click(selector),
];

Expand All @@ -67,7 +67,7 @@ Super.prototype.clickAndWaitForResponse = function (selector: string, predicate:
};

let promises: [Promise<HTTPResponse>, Promise<void>] = [
((this._frameManager as any)._page as Page).waitForResponse((typeof predicate === 'function') ? predicate : callback, options),
this.page().waitForResponse((typeof predicate === 'function') ? predicate : callback, options),
this.click(selector),
];

Expand Down

0 comments on commit 7e02075

Please sign in to comment.