Login Zabbix NMS using PhantomJS


#1

Hi,

I try to login my internel Zabbix NMS using phantomjs, success to open the webpage but then failed when checking the login form. Anyone can help me on this error (as attached)?

Thanks.

Code:

function(){
console.log(‘Step 2 - Submit the login form’);
page.evaluate(function(){
document.getElementById(“name”).value= “Admin”;
document.getElementById(“password”).value= “zabbix”;
document.getElementById(“login_form”).submit();
});
},