Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhn committed Apr 25, 2020
1 parent 61f6352 commit 480cafa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ browser.open();

// Periodically inspect work data
setInterval(_ => {
console.log(workData);
console.log(Date.now(), workData);

// Simulate actions on web page to prevent it from sleeping
browser.elements.keepAlive.click();
Expand All @@ -41,6 +41,8 @@ setInterval(_ => {
minuteValue(workData.nextattempt) > 0) {
browser.elements.btnStop.click();
setTimeout(_ => browser.elements.btnPause.click(), 2000);
console.log('paused');
setTimeout(_ => browser.elements.btnRun.click(), 10000);
console.log('unpaused');
}
}, 120000);

0 comments on commit 480cafa

Please sign in to comment.