Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE Automation

Status
Not open for further replies.

meluvalli

Programmer
Sep 1, 2012
3
US
Hello.

I am trying to automate login information on a webpage.

The webpage doesn't have ID's setup for the fields.

Example: <input name="user" tabIndex="1" class="ti" type="text" maxLength="32"/>

I am trying to figure out how to set the value of this field and am not having any luck as it doesn't have an ID assigned to it.

Any ideas?

Thanks!
 
I'd try the getElementsByName method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi PHV. Thanks for your reply.

I have tried this and it doesn't seem to like it :(

myIE.Document.getElementByName("user").Value = "test"

I get "Object doesn't support this property or method". :(

Any other thoughts?
 
Just an updated.

Looking more into the web page code, it looks like the value is within an iFrame. I think this is probably the problem. I still am unable to find a resolution for it though :(...

I tired to just load the page using the iFrame source, but they have it setup to re-direct you back to there main login page.

Any thoughts?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top