Fix: document.getElementByID doesn’t work issue while using internetexplorer.application COM objects to auto login to Websites in Internet Explorer browser
Scenario: Its a usual web automation requirement to setup auto login capability for certain sites through Internet Explorer browser. Most common implementation involves using internetexplorer.application COM object and accessing the web page HTML elements using DOM methods like getElementByID, getElementsByName, getElementsByTagName, etc., However, there are numerous complaints that while implementing COM automation scripts in VBScript, JavaScript, PowerShell, etc., you’ll find that none of the DOM methods fetches any results nor does auto-login to the website. Further $ie.READYSTATE will return just undefined or null. The general script to wait for IE to finish loading will never proceeds further. In Specific to […]
Read more