|
@@ -29,8 +29,7 @@ export default async function () {
|
|
|
// targetUrlWithoutProtocol = targetUrlWithoutProtocol.replace('https://', '');
|
|
|
try {
|
|
|
await page.goto(targetUrl, {
|
|
|
- timeout: 120000,
|
|
|
- waitUntil: "networkidle", // 等待网络稳定再继续(适合截图)
|
|
|
+ timeout: 120000
|
|
|
});
|
|
|
await page.screenshot({ path: `screenshots/screenshot_${timeStamp}.png` });
|
|
|
} finally {
|