Commit 85009dcf authored by nanahira's avatar nanahira

better timeout and click human

parent 1e060b7b
...@@ -181,7 +181,7 @@ export async function getOpenAIAuth({ ...@@ -181,7 +181,7 @@ export async function getOpenAIAuth({
await delay(100) await delay(100)
// NOTE: this is where you may encounter a CAPTCHA // NOTE: this is where you may encounter a CAPTCHA
if (hasNopechaExtension) { if (!hasRecaptchaPlugin) {
await waitForRecaptcha(page, { timeoutMs }) await waitForRecaptcha(page, { timeoutMs })
} else if (hasRecaptchaPlugin) { } else if (hasRecaptchaPlugin) {
console.log('solving captchas using 2captcha...') console.log('solving captchas using 2captcha...')
...@@ -219,7 +219,7 @@ export async function getOpenAIAuth({ ...@@ -219,7 +219,7 @@ export async function getOpenAIAuth({
await submit.click() await submit.click()
await page.waitForSelector('#password', { timeout: timeoutMs }) await page.waitForSelector('#password', { timeout: timeoutMs })
await page.type('#password', password) await page.type('#password', password)
await delay(3000) await delay(5000)
submitP = async () => { submitP = async () => {
//console.log('1st click') //console.log('1st click')
await page.click( await page.click(
......
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