akioweh / EducationPerfected

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

Unable to start the script #43

Closed botboy434 closed 2 years ago

botboy434 commented 2 years ago

Everything loads, the hot keys just don't work and nothing is in my console, I'm on Linux incase that has anything to do with it

akioweh commented 2 years ago

i have no idea please provide more info

botboy434 commented 2 years ago

Will do soon, nothing gets posted to console, but puppeteer opens the chrome window, I've also checked the web console incase it's in there, and it wasn't

akioweh commented 2 years ago

i've never actually tested on linux because i do not have a suitable machine to test on i theory it should work fine since node and puppeteer are platform independent... but i'm not sure

botboy434 commented 2 years ago

There's nothing in console, and I can't get the hotkeys to work, this is really strange

botboy434 commented 2 years ago

Tested on windows, still doesn't work, any insight?

akioweh commented 2 years ago

nope... i got no clue :( try executing the script with different methods and update the script with the newest version

botboy434 commented 2 years ago

Finally got a result, every hotkey works, besides starting the loop, this is the error that I get: Error: Error: failed to find element matching selector "#question-text" at ElementHandle.$eval (D:\EducationPerfected-2.1.0\node_modules\puppeteer\lib\cjs\puppeteer\common\ElementHandle.js:147:19) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async answerLoop (D:\EducationPerfected-2.1.0\index2.js:179:36)

akioweh commented 2 years ago

seems like it can't find the question to read it now

akioweh commented 2 years ago

i have no idea why... the lastest version of the script works completely fine for me try updating it if you haven't yet

also make sure you only press the alt + s hotkey on the task screen like this: image

akioweh commented 2 years ago

if you press the hotkey in an incorrect screen it will log the error to console but should continue to work properly

botboy434 commented 2 years ago

Ohhhhhh, your tasks are like that, that would explain it nevermind thanks for the script however