Skip to content

Commit d676ecc

Browse files
Change page.goto to wait for DOM content to load
1 parent 632740d commit d676ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/find/src/findForUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function findForUrl(url: string, authContext?: AuthContext): Promis
88
const contextOptions = authContext?.toPlaywrightBrowserContextOptions() ?? {};
99
const context = await browser.newContext(contextOptions);
1010
const page = await context.newPage();
11-
await page.goto(url);
11+
await page.goto(url, { waitUntil: 'domcontentloaded' });
1212
console.log(`Scanning ${page.url()}`);
1313

1414
let findings: Finding[] = [];

0 commit comments

Comments
 (0)