diff --git a/scripts/agenda.coffee b/scripts/agenda.coffee index 05574dd..39d1659 100644 --- a/scripts/agenda.coffee +++ b/scripts/agenda.coffee @@ -53,7 +53,7 @@ downloadAgenda = (day, cb) -> .goto('https://galilei-cr-sito.registroelettronico.com/login/') .type('#username',process.env.REGISTRO_USERNAME) .type('#password',process.env.REGISTRO_PASSWORD) - .click('#btnLogin').wait().screenshot('file.png') + .click('#btnLogin').wait() if process.env.REGISTRO_ID_STUDENTE n.goto('https://galilei-cr-sito.registroelettronico.com/select-student/'+process.env.REGISTRO_ID_STUDENTE+'/') n.goto('https://galilei-cr-sito.registroelettronico.com/agenda/?d='+dayurl) @@ -76,7 +76,7 @@ getCompiti = (cb) -> n.goto('https://galilei-cr-sito.registroelettronico.com/login/') n.type('#username',process.env.REGISTRO_USERNAME) n.type('#password',process.env.REGISTRO_PASSWORD) - n.click('#btnLogin').wait().screenshot('file.png') + n.click('#btnLogin').wait() if process.env.REGISTRO_ID_STUDENTE n.goto('https://galilei-cr-sito.registroelettronico.com/select-student/'+process.env.REGISTRO_ID_STUDENTE+'/') n.goto('https://galilei-cr-sito.registroelettronico.com/tasks/')