jeudi 16 mars 2017

How to edit the code where I don't have the specifics ID's? In vbscript

I have this code to enter in a website and login with vbs:

Set IE = CreateObject("InternetExplorer.Application")   
 IE.Visible = 1   
 IE.navigate "http://ift.tt/2m6JJNM"   
 Do While (IE.Busy)   
     WScript.Sleep 10   
 Loop   
 Set Helem = IE.document.getElementByID("TXTEmailLogin")   
 Helem.Value = "blabla@something.com.br" ' change this to yours   
 Set Helem = IE.document.getElementByID("password")   
 Helem.Value = "ladkask" ' change this to yours   
 Set Helem = IE.document.Forms(2)   
 Helem.Submit   

So, in the website I don't have the ID for password or eventually click on submit, how can I make this work?




Aucun commentaire:

Enregistrer un commentaire