VBA - IE GetElementByID not working

前端 未结 2 1003
無奈伤痛
無奈伤痛 2021-02-15 14:33

I\'m having some trouble with entering a text in a search box when after I what I think to be the correcet ID tag is. I got the ID from the page\'s source code. I\'ve done this

2条回答
  •  长发绾君心
    2021-02-15 15:19

    You can try

    Do Until IEexp.readyState = 4
    DoEvents
    Loop
    
    
    
    IEexp.Document.getElementById("username").Value = "Monthly update"
    
    
    IEexp.Document.getElementById("password").Value = FilePth
    

提交回复
热议问题