diff --git a/lib/apply/generic.mjs b/lib/apply/generic.mjs index 56e5c54..e3a3170 100644 --- a/lib/apply/generic.mjs +++ b/lib/apply/generic.mjs @@ -154,8 +154,8 @@ async function fillAndSubmit(page, job, formFiller, meta, opts) { // (invisible reCAPTCHA + server round-trip can take several seconds) const verifySelector = opts.verifySelector || 'form button[type="submit"]:not([disabled])'; let postSubmit = { hasSuccess: false, hasForm: true, validationErrors: [] }; - for (let wait = 0; wait < 6; wait++) { - await page.waitForTimeout(wait === 0 ? SUBMIT_WAIT : 2500); + for (let wait = 0; wait < 10; wait++) { + await page.waitForTimeout(wait === 0 ? SUBMIT_WAIT : 3000); postSubmit = await page.evaluate((vs) => { const text = (document.body.innerText || '').toLowerCase(); const errorEls = document.querySelectorAll('[class*="error"], [class*="invalid"], [role="alert"]');