As a script vbs\powershell to automate the parsing of the page (JavaScript)?

A personal account on the site. The entrance to it is via a page with JS-th. As the current JS off - page is not connected and authentication stops working. Actually a question essence - how you can use scripts to automate login and parsing the page balance. The problem is that the same Curl doesn't handle JS.
June 14th 19 at 20:27
2 answers
June 14th 19 at 20:29
Solution
To directly fill the fields login and password through the DOM. [addition:] For this to connect from Powershell to the COM object InternetExplorer.Application. Example - www.westerndevs.com/simple-powershell-automation-b...
fields there while JS will not see - ike37 commented on June 14th 19 at 20:32
Current status (loaded/ready) is easily caught through the DOM same. - antonette_Bro commented on June 14th 19 at 20:35
again - DOM empty until you see JS. There is no form to enter. - ike37 commented on June 14th 19 at 20:38
Mm, you don't seem to understand the principle of operation in powershell with the DOM through a COM object InternetExplorer.Application? Otherwise this problem you had. You'd just do a while loop, something like:
while ($ie.ReadyState -ne 4) {Start-Sleep -Seconds 1}
and waited for the full page is ready with all its attendant giblets. - antonette_Bro commented on June 14th 19 at 20:41
It looks like what you need.
It remains to write the script in PowerShell - ike37 commented on June 14th 19 at 20:44
June 14th 19 at 20:31
Selenium WebDriver for .NET
you can also try to intercept traffic during a normal login through the browser (chemnit type fiddler), find out what are the requests/responses and to simulate their script.
Requests there is a standard, POST with the username and password, but for this to work need that the page worked JS. - ike37 commented on June 14th 19 at 20:34

Find more questions by tags VBScriptPowerShell