I have this code written in PowerShell:
$username = \"xxxxxx\"; $password = \"xxxxxx\"; $url = \"www.facebook.com/login\"; $ie = New-Object -com internetexp
Workaround Always use the following methods instead of the native ones:
IHTMLDocument3_getElementsByTagName IHTMLDocument3_getElementsByName IHTMLDocument3_getElementByID
Thanks to Paul Lim Here