From 6a2439a5f8d8cf916f9be6dcbb74360d24940fc2 Mon Sep 17 00:00:00 2001 From: DongHY1 Date: Fri, 19 Jul 2024 13:00:36 +0800 Subject: [PATCH] chore: update time and fix grammer --- .env example => .env.example | 0 scripts/puppeteer.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .env example => .env.example (100%) diff --git a/.env example b/.env.example similarity index 100% rename from .env example rename to .env.example diff --git a/scripts/puppeteer.js b/scripts/puppeteer.js index f3aa5a5..6d5c31d 100644 --- a/scripts/puppeteer.js +++ b/scripts/puppeteer.js @@ -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: 10000 }); + await page.waitForSelector('button[aria-label="Quick export PDF"]', { timeout: 5000 }); console.log('页面加载完毕') // 找到并点击带有aria-label="Quick export PDF"的按钮 const quickExportPDFButton = await page.$('button[aria-label="Quick export PDF"]');