Skip to content

Commit f8f5f06

Browse files
committed
feat: Add logs for debugging
1 parent 7df5d3c commit f8f5f06

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ export async function findForUrl(url: string, sessionStatePath?: string): Promis
1010
const page = await context.newPage();
1111
await page.goto(url);
1212

13-
await sleep(5000);
14-
console.log(page.url());
13+
try {
14+
console.log("Sleeping for 5 seconds to allow page to load completely...");
15+
await sleep(5000);
16+
console.log(page.url());
17+
} catch (error) {
18+
console.error('Error occurred while sleeping or logging URL:', error);
19+
}
20+
console.log("Continuing with accessibility scan...");
1521

1622
let findings: Finding[] = [];
1723
try {

0 commit comments

Comments
 (0)