Hi All,
I need one help here…
i am trying to get the text from one of the page from one application by following path
login by entering username and password >> Tab1 >> Field1 >>text(from this page i need to copy the text by searching a string “string123”)
i tried below code but it opening an application but it is login to that page
$url = “http://www..com"
$username=“admin”
$password="***”
$ie = New-Object -com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);
while ($ie.Busy -eq $true)
{
Start-Sleep -Milliseconds 1000;
}
$ie.Document.getElementById(“login”).value = $username
$ie.Document.getElementByID(“Passwd”).value= $password
Import-Module WASP
$ie = Select-Window IEXPLORE | Set-WindowActive
$ie | Send-Keys “}Admin}”
Start-Sleep -Milliseconds 1000
$ie | Send-Keys “}ENTER]”
Thanks.