Skip to content

Commit

Permalink
Revert "feat(twitter): waitUntil domcontentloaded"
Browse files Browse the repository at this point in the history
This reverts commit 57d5aab.
  • Loading branch information
DIYgod committed Aug 23, 2024
1 parent 50409ec commit a2053d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/twitter/api/web-api/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a2053d6

Please sign in to comment.