Commit 85009dcf authored by nanahira's avatar nanahira

better timeout and click human

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