Commit 035265c9 authored by nanahira's avatar nanahira

wait more

parent 85009dcf
...@@ -909,7 +909,7 @@ async function getOpenAIAuth({ ...@@ -909,7 +909,7 @@ async function getOpenAIAuth({
await page.waitForSelector("#username"); await page.waitForSelector("#username");
await page.type("#username", email); await page.type("#username", email);
await delay(100); await delay(100);
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...");
...@@ -944,7 +944,7 @@ async function getOpenAIAuth({ ...@@ -944,7 +944,7 @@ 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(3e3); await delay(1e4);
submitP = async () => { submitP = async () => {
await page.click( await page.click(
'button[type="submit"][data-action-button-primary="true"]' 'button[type="submit"][data-action-button-primary="true"]'
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -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(5000) await delay(10000)
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