-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Please run the code for 20 mins and the bug will pop up. I tested it on a VPS with Ubuntu Server 14.04 LTS 64-bit
const Horseman = require("node-horseman");
var browserIsReady = true;
function reachPage() {
var horseman = new Horseman();
console.log("Starting...");
horseman
.viewport(800, 600)
.open("https://www.facebook.com/bbcnews")
.status()
.then(function (status) {
if (Number(status) != 200) {
console.log("Couldn't load page, trying again...");
return horseman.close();
}
})
.wait(1e4)
.log("Stepping out...") // prints out the durl
.wait(3e3)
.finally(function() {
horseman.close();
setTimeout(reachPage, 3e3);
return
});
}
reachPage();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
