kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: No element found for selector: button[data-provider="google"]
rodzic
aacc254a48
commit
cbb3e99fd6
|
@ -138,6 +138,9 @@ export async function getOpenAIAuth({
|
||||||
let submitP: () => Promise<void>
|
let submitP: () => Promise<void>
|
||||||
|
|
||||||
if (isGoogleLogin) {
|
if (isGoogleLogin) {
|
||||||
|
await page.waitForSelector('button[data-provider="google"]', {
|
||||||
|
timeout: timeoutMs
|
||||||
|
})
|
||||||
await page.click('button[data-provider="google"]')
|
await page.click('button[data-provider="google"]')
|
||||||
await page.waitForSelector('input[type="email"]')
|
await page.waitForSelector('input[type="email"]')
|
||||||
await page.type('input[type="email"]', email, { delay: 10 })
|
await page.type('input[type="email"]', email, { delay: 10 })
|
||||||
|
|
Ładowanie…
Reference in New Issue