1 Attachment(s)
Unable to type into username box in website
There is a website, i have to login. I am unable to type into the input box of the logon form. I tried to get the associated object with the tag name "input" but i am unable to retrieve it.
Here is my code. I should be able to populate user name & password. Inspect Element Picture Link: https://drive.google.com/open?id=1Og...u5q-zmM1LGwUy9
Dim ie As InternetExplorerMedium
Dim HTML As HTMLDocument
Dim HTML1, HTML2 As HTMLDocument
URL = "xxxx"
Set ie = New InternetExplorerMedium
ie.Visible = True
ie.navigate URL
Do While ie.readyState <> READYSTATE_COMPLETE Or ie.Busy: DoEvents: Loop
Set HTML = ie.document
Set HTML1 = HTML.getElementById("_id0")
Debug.Print HTML.getElementByTagName() '-----------------------------------------Not able to get the tag name
Call HTML1.getElementById("logon:").setAttribute("value", "username") '---------Neither able to update the username & password too