Hello! I'm trying to go through authorization with phantomjs, but it doesn't work, here’s the code:
// Authentication "use strict"; var siteUrl = 'http://www.3dcontentcentral.com/secure/download-model.aspx? catalogid=10260&id=496588'; var page = require('webpage').create(); page.open(siteUrl, function (status) { if (status !== 'success') { console.log('Unable to access network'); } else { console.log("Status: " + status); page.render('yes.png'); var fs = require('fs'); fs.write('page.html', page.content, 'w'); //заполняем page.evaluate(function() { document.getElementById("3dcclogin").value = "mymail@mail.ru"; document.getElementById("3dccpassword").value = "mypass"; document.getElementById("btn_ucLogin").click(); }); } page.render('yes2.png'); fs.write('page1.html', page.content, 'w'); phantom.exit(); }); I changed the password and login. Can you please tell me what I am doing wrong?