I am trying to automate filling of a simple web form and get into the website to do some monitoring task.
The problem is that this site only works in Internet Explorer 8. I know some coding and I have figure out a way with VBScript, but its not working and give this error
Z:\000-Working_on\007- SDM script\checkitv1.vbs(6, 3) Microsoft VBScript runtime
error: Object doesn't support this property or method: 'getElementsByName'
This used to work. Please guide me get past this window with any coding language and I will figure out and learn the language to automate the rest.
Right now my only requirements are 1. To fill the Username and Password field with any junk. 2. Click the Submit button.
You can use any language to achieve this.
Edit: Here is the crude code that i tried:
URL = "http://ift.tt/1Iy2MRQ"
Set ie = CreateObject("InternetExplorer.Application")
With ie
.visible=True
.Navigate url
.getElementsByName("USERNAME")(0).value = "abcdef"
.getElementsByName("USERNAME")(0).value = "daddasd0"
'.getElementsByName("imgBtn0_button")(0).Submit
End With
Do until ie.ReadyState = 4 : WScript.Sleep 100 : Loop
Aucun commentaire:
Enregistrer un commentaire