autofill - Having trouble getting vbscript to recognize an input area -


i'm new this, i'm trying write script fill out form use helpdesk issues in extremely busy area. i've tried various ways text field , scoured internet looking correct way it, either i'm searching wrong keywords or i'm blind.

the specific field i'm trying manipulate below:

input name="custom_ticket_form_field_2" type="text" style="width: 400px" value=""

the area i'm having trouble with:

 option explicit   dim objie : set objie = createobject("internetexplorer.application")  objie.navigate "about:blank"  objie.visible = true  objie.navigate "http://xxxx/xxxx"  until objie.readystate = 4  wscript.sleep 500  loop    objie.document.getelementsby**????**("custom_ticket_form_field_2").value = "laptop" 

no matter how try identify(????) "custon_ticket_form_field_2" can't seem text end there. suggestions!

you want:

objie.document.getelementsbyname("custom_ticket_form_field_2").item(0).value 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -