in reply to Re: Win32::IE::Mechanize trouble
in thread Win32::IE::Mechanize trouble

That was my initial thought too, but I revised the source code for the page, and here is the area where it's specified.

<td> <input type="text" name="userName" maxlength="24" size="12" +tabindex="1" value="" onkeypress="return enterToSubmit()" class="text +field0"> </td> <td> <span class="label">new visitor: <a href="javascript:goToUrl +('goToRegistration');">register</a></span> </td> </tr> <tr> <td> <span class="label">password:</span> </td> <td> <input type="password" name="password" maxlength="24" size=" +12" tabindex="2" value="" onkeypress="return enterToSubmit()" class=" +textfield0"> </td> <td>

And so I'm not so sure that that's the issue.

Replies are listed 'Best First'.
Re^3: Win32::IE::Mechanize trouble
by ikegami (Patriarch) on Jun 19, 2008 at 19:39 UTC

    I don't know if the ids are case sensitive, but password isn't properly cased

    You haven't shown that the form is properly selected. pc88mxer has some advice on that.

    And it wouldn't hurt to find out which input it can't find.

      Here is the form tag. There's only form on the page

      <form name="loginForm" method="post" action="/ccp/login/submitLogin.do">

      I tried to isolate which it couldn't find by doing:

      $ie->field( userName => "username" );

      Then the same thing for password, but they both yielded the same result.