From a2053d656c038b43b1c6c07a07e6a4bffecd8e55 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 23 Aug 2024 17:40:10 +0800 Subject: [PATCH] Revert "feat(twitter): waitUntil domcontentloaded" This reverts commit 57d5aabceaa3d643c5a1ac014cd2c54e350e7bd4. --- lib/routes/twitter/api/web-api/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/twitter/api/web-api/login.ts b/lib/routes/twitter/api/web-api/login.ts index 73a0b31f059b68..07e5157fe54a6c 100644 --- a/lib/routes/twitter/api/web-api/login.ts +++ b/lib/routes/twitter/api/web-api/login.ts @@ -32,7 +32,7 @@ async function login({ username, password, authenticationSecret }) { stealth: true, }); const page = await browser.newPage(); - await page.goto('https://x.com/i/flow/login', { waitUntil: 'domcontentloaded' }); + await page.goto('https://x.com/i/flow/login'); await page.waitForSelector('input[autocomplete="username"]'); await page.type('input[autocomplete="username"]', username); const buttons = await page.$$('button');