Hey Guys, Ashish Malik is here,
I am trying to auto login from a Powershell script but it is showing me this error
---The property 'value' cannot be found on this object. Verify that the property exists and can be set.---
Here is the code, Here username and password are dummy values, but in script,i am using real values.
$url = "http://gmail.com";
$username="xyz@gmail.com"
$password="xyz123"
$ie = New-Object -com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);
while ($ie.Busy -eq $true)
{
Start-Sleep -Milliseconds 1000;
}
$ie.Document.getElementById("email").value = $username
$ie.Document.getElementByID("Passwd").value=$password
$ie.Document.getElementById("signin").Click();