akioweh / EducationPerfected

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

Not detecting correct answers #52

Closed Dontmindthehacker closed 1 year ago

Dontmindthehacker commented 1 year ago

I have been using Education Perfected to answer other kinds of list tasks (not language) and some answers will not be detected. Sometimes it will throw this err: Error: Error: failed to find element matching selector "#question-text" at ElementHandle.$eval (C:\Users\chris\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 (C:\Users\chris\OneDrive\Documents\SoFTwAre\EPFARMER\index.js:180:36)

Dontmindthehacker commented 1 year ago

Also it sometimes will just get stuck and print "No answer found for question" over and over again untill I stop it, wait ten seconds, and restart.

Dontmindthehacker commented 1 year ago

never have had this problem with language tasks.

Dontmindthehacker commented 1 year ago

This is an average go at a task with 20 questions, it will get stuck on one: Starting answerLoop. answerLoop entered. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. No answer found for A state of exhaustion caused by a lack of food and water. ===== Details after Incorrect Answer: ===== Detected Question: => A state of exhaustion caused by a lack of food and water. Inputted Answer: => IDK

Modal Question: =>   Modal Full Answer: =>   Modal Cut Answer: => Modal Detected Answered: =>

Error: Error: failed to find element matching selector "#question-text" at ElementHandle.$eval (C:\Users\chris\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 (C:\Users\chris\OneDrive\Documents\SoFTwAre\EPFARMER\index.js:180:36)

akioweh commented 1 year ago

it is only meant to work for language questions other subjects or types of tasks have different formats and stuff that may break it

Dontmindthehacker commented 1 year ago

Ahh, I wondered