javascript - Login script using VBS -


i trying write script using vbs having issues getting code work properly. have able run script using google chrome. needing script fill in username , password on website , "log in." have inspected page using developer tools in google chrome , without being specific element id username text box , password text box on page respectively.

<input id="user_name_input" type="text" name="username" size="20" value="">

<input id="password_input" type="password" name="password" size="20" value="">

i have been working on while , cannot run without bombing out. have found script online open page correctly can't find me past that.

dim iurl dim objshell  iurl = "website url"  set objshell = createobject("wscript.shell") objshell.run(iurl) 

i know internet explorer script set id values is

ie.document.all.item("user_name_input").value = "the@email"  ie.document.all.item("password_input").value = "password"  

but not work when need run in chrome. please help.

google chrome doesn't use vbscript. internet explorer does, , in compatibility modes.

wrong language circumstances. use jscript.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -