Skip to content

Commit

Permalink
fix: No element found for selector: button[data-provider="google"]
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Dec 27, 2022
1 parent 63e7c47 commit 345b5be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openai-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ export async function getOpenAIAuth({
let submitP: () => Promise<void>

if (isGoogleLogin) {
await page.waitForSelector('button[data-provider="google"]', {
timeout: timeoutMs
})
await page.click('button[data-provider="google"]')
await page.waitForSelector('input[type="email"]')
await page.type('input[type="email"]', email, { delay: 10 })
Expand Down

0 comments on commit 345b5be

Please sign in to comment.