Pandora Log in
Posted: Wed Apr 23, 2014 5:02 pm
Hello im trying to write this code to log into pandora automatically. but i cant figure out how to get the code to hit the log in button. Ill attach the code that i have. Ive looked at different forums and tried what was said in them but it doesnt work for mine. Any input id appreciate it!
#Pandora log in info
$email = "xxxxxx@gmail.com";
$Password = "xxxxx";
$url = "http://www.pandora.com/account/sign-in"
# Create an ie com object
$ie = New-Object -com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);
# Wait for page to load
while ($ie.Busy -eq $true)
{
Start-Sleep -Milliseconds 10000;
}
#login
Write-Host -ForegroundColor Green "Attempting to login to Pandora.";
# Add login details
$ie.Document.getElementById("email").value = $email;
$ie.Document.getElementById("password").value = $Password;
# Click the submit button
$ie.document.getElementById("sign in").click;
# Wait for the page to load while ($ie.Busy -eq $true)
{
Start-Sleep -Milliseconds 30000;
}
#Pandora log in info
$email = "xxxxxx@gmail.com";
$Password = "xxxxx";
$url = "http://www.pandora.com/account/sign-in"
# Create an ie com object
$ie = New-Object -com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);
# Wait for page to load
while ($ie.Busy -eq $true)
{
Start-Sleep -Milliseconds 10000;
}
#login
Write-Host -ForegroundColor Green "Attempting to login to Pandora.";
# Add login details
$ie.Document.getElementById("email").value = $email;
$ie.Document.getElementById("password").value = $Password;
# Click the submit button
$ie.document.getElementById("sign in").click;
# Wait for the page to load while ($ie.Busy -eq $true)
{
Start-Sleep -Milliseconds 30000;
}