Skip to content

Instantly share code, notes, and snippets.

View sparda2's full-sized avatar

Jose Velez sparda2

View GitHub Profile
@sparda2
sparda2 / questionUtils.js
Last active May 22, 2018 06:35
This file has the logic to resolve the questions
exports.solveResumableQuestions = function(client) {
var incorrectQuestionIdx;
var preTestPage = client.page.mathPretest.preTestPage();
var elaStudiesPage = client.page.student.elaStudiesPage();
function answerQuestions(client, questionIdx) {
var scienceAssignmentPage = client.page.student.scienceAssignmentPage();
client.pause(1000);
scienceAssignmentPage.click(scienceAssignmentPage.getAssignmentArticleMultipleOptionAnswerFirstAnswer(questionIdx));
scienceAssignmentPage.click(scienceAssignmentPage.getAssignmentArticleMultipleOptionAnswerSubmitButton(questionIdx));