How can I automatically login to a website using vbscript? -
on error resume next:
const page_loaded = 4 set objie = createobject("internetexplorer.application") call objie.navigate("http://172.25.25.32:8090/") objie.visible = true until objie.readystate = page_loaded : call wscript.sleep(100) : loop objie.document.all.username.value = "ashishgi" objie.document.all.password.value = "apac2015#" if err.number <> 0 msgbox "error: " & err.description end if call objie.document.all.gaia_loginform.submit set objie = nothing
the gaia_loginform
"form id" of gmail. have here: http://i.imgur.com/45h7pkp.jpg.
now think should form name/id of site (by viewing source) script can hit login button.
Comments
Post a Comment