akioweh / EducationPerfected

JS script to automatically answer Education Perfect tasks
32 stars 35 forks source link

After starting up it just goes to the login page and crashes eventually #56

Closed luffanji closed 1 year ago

luffanji commented 1 year ago

\Users\hansy\Downloads\EducationPerfected-2.1.0\EducationPerfected-2.1.0>node index.js C:\Users\hansy\node_modules\puppeteer-core\lib\cjs\puppeteer\common\WaitTask.js:65 this.terminate(new Errors_js_1.TimeoutError(Waiting failed: ${options.timeout}ms exceeded)); ^

TimeoutError: Waiting for selector #login-username failed: Waiting failed: 30000ms exceeded at Timeout. (C:\Users\hansy\node_modules\puppeteer-core\lib\cjs\puppeteer\common\WaitTask.js:65:32) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

C:\Users\hansy\Downloads\EducationPerfected-2.1.0\EducationPerfected-2.1.0>pause Press any key to continue . . .

luffanji commented 1 year ago

whenever i click a key to continue the whole program just kills itself

akioweh commented 1 year ago

whenever i click a key to continue the whole program just kills itself

yeah that's normal because after it crashes it doesn't immediately close the terminal until you press a key so you can actually read the error messages

As for the issue itself... update your script. EP changed css of the input boxes (a long time ago) so it can't find certain stuff

luffanji commented 1 year ago

wdym by update my script

luffanji commented 1 year ago

i have added the password and email

luffanji commented 1 year ago

but it still doesn't work

akioweh commented 1 year ago

image like... i might've edited it so just copy paste it again