From e574e509bfb676b43a5cb35bf34225ed6f7b5747 Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Wed, 3 Apr 2024 21:22:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pteer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pteer.js b/pteer.js index 70b61de0..089b3605 100644 --- a/pteer.js +++ b/pteer.js @@ -31,7 +31,7 @@ require("dotenv").config(); }); // 等待用户名输入框加载 - await page.waitForSelector("#login-account-name"); + await page.waitForSelector("#login-account-name", { timeout: 60000 }); // 模拟人类在找到输入框后的短暂停顿 await delayClick(500); // 延迟500毫秒 // 清空输入框并输入用户名 @@ -41,7 +41,7 @@ require("dotenv").config(); }); // 输入时在每个按键之间添加额外的延迟 // 等待密码输入框加载 - await page.waitForSelector("#login-account-password"); + await page.waitForSelector("#login-account-password", { timeout: 60000 }); // 模拟人类在输入用户名后的短暂停顿 await delayClick(500); // 清空输入框并输入密码