Consulting

Results 1 to 1 of 1

Thread: Unable to type into username box in website

  1. #1
    VBAX Newbie
    Joined
    Apr 2019
    Posts
    1
    Location

    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
    Attached Images Attached Images
    Last edited by samregd; 04-24-2019 at 06:11 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •