VBScript to automatically launch webpage in Internet Explorer and auto login with username and password
Requirement: You want to have a web page pre-launched with automatic username and password login to the web page. Using VBScript: Using VBScript you can achieve this requirement where you create an Internet Explorer Application object and have complete access/control to it’s elements/content and their properties. Create IE Object: Set ObjIE = CreateObject(“internetexplorer.application”) Launch web page: ObjIE.Navigate “http://localhost/TestApp/User001/Login” Wait for page to load: WScript.Sleep 500 in Do Loop While ObjIE.ReadyState < 4 And ObjIE.Busy Input username: .getElementByID(“userId”).value = “Visitor” Input password: .getElementByID(“password”).value = “password” Click Sign-in Button: .getElementByID(“signIn_OK”).Click Sample Script: ‘===============================================================================’ Script name : Auto-Launch-Login-TestApp-IEBrowser.vbs’ Author : Govardhan Gunnala’ […]
Read more