Commit 345b5be4 authored by suhaotian's avatar suhaotian

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

parent 63e7c47a
...@@ -138,6 +138,9 @@ export async function getOpenAIAuth({ ...@@ -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 })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment