Skip to content

Commit

Permalink
fix: remove isOOPFrame check (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Aug 5, 2024
1 parent 6f9af5b commit fd9f974
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/PuppeteerRunnerExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,7 @@ export class PuppeteerRunnerExtension extends RunnerExtension {
let targetFrame: Frame | null = null;

if (!targetPage && step.target) {
const frames = page.frames();
for (const f of frames) {
if (f.isOOPFrame() && f.url() === step.target) {
targetFrame = f;
break;
}
}
if (!targetFrame) {
targetFrame = await page.waitForFrame(step.target, { timeout });
}
targetFrame = await page.waitForFrame(step.target, { timeout });
}
const targetPageOrFrame = targetFrame || targetPage;
if (!targetPageOrFrame) {
Expand Down

0 comments on commit fd9f974

Please sign in to comment.