I'm trying to create a PowerShell script to open Internet Explorer, navigate to https://clockify.me/login , fill in the email and password inputs and submit the form or click the log in button.
The problem is that, when filling the inputs using:
document.getElementById("email").value="123"
document.getElementById("password").value="123"
I have the following results:
- When I submit the form with
document.forms[0].submit()
the pages reload with URL https://clockify.me/login?email=&password= and nothing happens - When I click the button, using javascript or manually, it considers that the inputs are empty
So, is there a way to work around this? Either using purely javascript or PowerShell (I wish to keep the IE window invisible)
Thanks!
Invoke-RestMethod
against the site and sending your auth information in the headers?