fix: No element found for selector: button[data-provider="google"]

pull/205/head
suhaotian 2022-12-27 19:26:32 +08:00
rodzic 63e7c47ab0
commit 345b5be4ec
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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 })