trifleJS
trifleJS copied to clipboard
TrifleJs in Windows Server
Hello, I'm a beginner on this and i'm trying to run trifleJs on Windows Server 2008 SP2, here's my code;
C:> TrifleJS.exe --emulate=IE8 download_data.js
download_data.js :
var page1 = require('webpage').create(), pag1 = 'http://10.192.XX.XX:8888/Ingenieria/logiN.do', dat1 = 'user=myuser&pass=mypass';
page1.open(pag1, 'post', dat1); page1.onLoadFinished = function(){ page1.evaluate(function(){ document.getElementById('frmPantalla').src='http://10.192.XX.XX:8888/Ingenieria/showScreen.do?action=doit'; document.getElementById('msj').style.display = "none"; document.getElementById('background').style.display = "none"; ";
});
window.setTimeout(function () {
page1.render('./prueba.png');
phantom.exit();
}, 60000);
};
And i'm not getting anything. Thanks in advance.