Jack,
There is a lot of commented code, so I can't pick out where you are getting a reference to the <input> elements, and calling the 'click' method for the button.
Main Topics
Browse All TopicsI am trying to navigate to a website and enter in my userName and password and submit it. But the code only opens up the website and enters in only the username not the password or the submit button?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Jack_KnightPosted on 2009-03-11 at 13:22:04ID: 23861912
Here is the source code for the website I am trying to login to.
ilboxServl et" AUTOCOMPLETE="off">
<HTML>
<HEAD>
<!-- logon.htm Language=en Country=US
-->
<LINK rel="stylesheet" type="text/css" name="defaultstyle" href="style.css"><TITLE> CONNECT:Enterprise - Logon</TITLE>
</HEAD>
<BODY >
<FORM METHOD="POST" ACTION="/cehttp/servlet/Ma
<INPUT TYPE="HIDDEN" NAME="operation" VALUE="LOGON">
<H2>Logon Form</H2>
<BR>
<P>
<table border=3 cellpadding=3 cellspacing=3>
<tr><td><strong><FONT COLOR="#003399">
To logon, complete your User ID and Password below, then click on the Submit button.
</FONT></strong></td></tr>
</table>
<BR>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td>
User ID:
</td>
<td><INPUT TYPE="TEXT" NAME="remote" SIZE="9" MAXLENGTH="64" AUTOCOMPLETE="off"></td></tr>
<tr><td>
Password:
</td><td><INPUT TYPE="PASSWORD" NAME="password" SIZE="9" MAXLENGTH="16" AUTOCOMPLETE="off"></td></tr>
</table>
<BR>
<table>
<tr>
<td>
<INPUT TYPE="SUBMIT" NAME="logon" VALUE=" Submit" CHECKED="CHECKED">
</td>
<td>
<INPUT TYPE="RESET" NAME="Cancel" VALUE=" Reset">
</td>
</FORM>
</tr>
</table>
</BODY>
</HTML>