How to select by using GetElementByName

Hello i was trying to automated login to website. Password field has no ID and has name so I tried to use GetElementByName and there's no input when in password field on browser. Please help.




While ($ie.Busy -eq $true) {Start-Sleep -Seconds 3;}

$usernamefield = $ie.document.getElementByID('user_name')
$usernamefield.value = "$username"

$passwordfield = $ie.document.getElementByName('pass_word')
$passwordfield.value = "$password"


Read more here:

Content Attribution

This content was originally published by Gundalai at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: