Wednesday, 7 December 2016

Powershell script to login in WAY2SMS (InternetExplorer.Application)

##### VARIABLE DECLARATION ####
$URL      = "http://site21.way2sms.com/content/index.html"
$username = "****"
$password = "****"
$SMSBODY = "HI THIS IS AUTOMATED TXT FROM RAGHU"

##### FIRST PAGE #######

$ie = New-Object -com InternetExplorer.Application
$ie.visible=$true
$ie.navigate("$URL")
while($ie.Busy) {Start-Sleep 1}
$ie.document.getElementById("username").value= "$username"
$ie.document.getElementById("password").value = "$password"
$ie.document.getElementById("loginBTN").click()

No comments:

Post a Comment

Git

1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...