Skip to content

Commit

Permalink
chore: add cv.pdf and add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hidaviddong committed Jul 19, 2024
1 parent 651710c commit f17022f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added public/cv.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ try {
console.log('登录成功')
await page.waitForTimeout(10000)
// 等待带有aria-label="Quick export PDF"的按钮出现,最多等待10秒钟
await page.waitForSelector('button[aria-label="Quick export PDF"]', { timeout: 5000 });
await page.waitForSelector('button[aria-label="Quick export PDF"]', { timeout: 10000 });
console.log('页面加载完毕')
// 找到并点击带有aria-label="Quick export PDF"的按钮
const quickExportPDFButton = await page.$('button[aria-label="Quick export PDF"]');
Expand Down

0 comments on commit f17022f

Please sign in to comment.