Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Facing Problem while Auto Login in Gmail using COM Object

$
0
0

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();



Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>