Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

TrifleJs in Windows Server #59

Open
vintagenub opened this issue Dec 14, 2015 · 0 comments
Open

TrifleJs in Windows Server #59

vintagenub opened this issue Dec 14, 2015 · 0 comments

Comments

@vintagenub
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant