i am adding user id and password to website and trying to login to site. in below code i am not able to click on the Login button i tried click submit but not able to click. can any one please help me
$username = "abcd"
$password = "abc"
$ie = New-Object -com InternetExplorer.Application
$ie.visible=$true
$ie.navigate("https://www.google.com/")
while($ie.ReadyState -ne 4) {start-sleep -m 100}
$ie.document.getElementById("loginId").value= "$username"
$ie.document.getElementById("password").value = "$password"
$fs = $ie.document.getElementById("loginButton")
$fs.click()