[twill] Problems logging into an .ASP page

Dave Strohschein strohsch at gmail.com
Sat Dec 13 12:18:33 PST 2008


Hello all,
  I'm new to TWILL and to this forum, but I hope someone can help me.
BACKGROUND:  I am in the Civil Air Patrol and I am trying to download weekly
updates (using TWILL) of member status.
The webpage that I am trying to log into is
https://wmu.nat.cap.gov/Login.asp?.
I start up Twill within the Python IDLE and use the following commands and
obtain the included results (shown below '--------------------').
I store my username and password in the values: CAPIDbox and Textbox1,
respectively.
Then I try to "submit" using Button3.

The problem is shown at the end after I try to submit. I get the following
error:

ERROR: IgnoreControl instance has no attribute '_click' current page:
https://wmu.nat.cap.gov/Login.asp?

NOTE: I have logged into this page manually repeated times via an actual
browser.

So what do I need to do to login?????

Thanks in advance for the help.
Dave
strohsch at gmail.com
---------------------------------------------------------------------------------------------------------------------------

twill.shell.main()

>> go https://wmu.nat.cap.gov/Login.asp?
==> at https://wmu.nat.cap.gov/Login.asp?
current page: https://wmu.nat.cap.gov/Login.asp?
>> show
<SCRIPT LANGUAGE=JavaScript SRC="/_ScriptLibrary/pm.js"></SCRIPT>
<SCRIPT LANGUAGE=JavaScript>thisPage._location = "/Login.asp";</SCRIPT>

<FORM name=thisForm METHOD=post>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>

<P>&nbsp;</P>
<P align=center><FONT color=red><A href="default.htm">Home</A></FONT></P>
<P align=center><FONT size=4><FONT size=5>Welcome to the Wing Management
Utilities<BR><A href="WMUhelp.htm"><FONT color=red size=3>Click Here for
Instructions to this system</FONT></A></FONT></FONT></P>
<P align=center>
<TABLE cellSpacing=1 cellPadding=1 width=200 align=center border=0>

  <TR>
    <TD align=middle>

</TD></TR></TABLE></P>
<TABLE cellSpacing=1 cellPadding=1 width="50%" align=center border=1>

  <TR>
    <TD colSpan=2>
      <P align=center><FONT size=4>Web User Entry Validation Form
  </FONT></P></TD></TR>
  <TR>
    <TD style="WIDTH: 100px" align=right width=100>
      Enter Your CAPID:
</TD>
    <TD style="WIDTH: 100px" width=100>
      <INPUT type="text" id="CAPIDbox" name="CAPIDbox" size=20 maxLength=20
value="">

</TD></TR>
  <TR>
    <TD style="WIDTH: 100px" align=right width=100>
      Enter Your Password:
</TD>
    <TD style="WIDTH: 100px" width=100>
      <INPUT type="password" id="Textbox1" name="Textbox1" size=20
maxLength=40>

</TD></TR></TABLE>
<P>
<TABLE cellSpacing=1 cellPadding=1 width=200 align=center border=0>

  <TR>
    <TD align=middle>
      <INPUT type=button name="Button3" id="Button3" value="Submit"
onclick="thisPage._fireEvent('Button3','onclick'); return false;">

</TD>
    <TD align=middle>
      <INPUT type=button name="Button4" id="Button4" value="Clear">

</TD></TR>
  <TR>
    <TD align=middle colSpan=2>
<P> <BR>
      <INPUT type=button name="Button5" id="Button5" value="Forgot your
password?" onclick="thisPage._fireEvent('Button5','onclick'); return
false;">

</P>
</TD></TR></TABLE></P>

<P align=center>

<FONT FACE="Arial" SIZE="4" COLOR="Red"><B>

</FONT></B>


</P>
<P align=center><STRONG>Warning! The information you are receiving is
protected
from interception or disclosure. Any person who intentionally distributes,
reproduces, or discloses its contents is subject to the penalties set forth
in
18 United States Code Section 2511 and/or related state and federal laws of
the
United States.</STRONG></P>

</BODY>
<script language="javascript">
//<!--
document.thisForm.CAPIDbox.focus();
//-->
</script>

<INPUT type=hidden name="_method">
<INPUT type=hidden name="_Button1_state"
value="_bVisible=false&value=Create%20Password">
<INPUT type=hidden name="_Label2_state"
value="_strCaption=Enter%20Your%20CAPID%3A">
<INPUT type=hidden name="_CAPIDbox_state"
value="_bVisible=true&_nColumnCount=20&_nMaxLength=20">
<INPUT type=hidden name="_Label1_state"
value="_strCaption=Enter%20Your%20Password%3A">
<INPUT type=hidden name="_Textbox1_state"
value="_bVisible=true&_nStyle=2&_nColumnCount=20&_nMaxLength=40">
<INPUT type=hidden name="_Button3_state" value="value=Submit">
<INPUT type=hidden name="_Button4_state" value="value=Clear">
<INPUT type=hidden name="_Button5_state"
value="value=Forgot%20your%20password%3F">
<INPUT type=hidden name="_errorMessageBox_state"
value="_bVisible=false&_strCaption=">
<INPUT type=hidden name="_Label3_state"
value="_bVisible=false&_strCaption=undefined">
<INPUT type=hidden name="_menuQuery_state"
value="_bVisible=false&_strCaption=undefined">
<INPUT type=hidden name="_thisPage_state" value="">

</FORM>
</HTML>

current page: https://wmu.nat.cap.gov/Login.asp?

>> showforms
Form name=thisForm (#1)
## ## __Name__________________ __Type___ __ID________
__Value__________________
1     CAPIDbox                 text      CAPIDbox
2     Textbox1                 password  Textbox1
3     Button3                  button    Button3      None
4     Button4                  button    Button4      None
5     Button5                  button    Button5      None
6     _method                  hidden    (None)
7     _Button1_state           hidden    (None)
_bVisible=false&value=Create%20Password
8     _Label2_state            hidden    (None)
_strCaption=Enter%20Your%20CAPID%3A
9     _CAPIDbox_state          hidden    (None)
_bVisible=true&_nColumnCount=20&_nMa ...
10    _Label1_state            hidden    (None)
_strCaption=Enter%20Your%20Password%3A
11    _Textbox1_state          hidden    (None)
_bVisible=true&_nStyle=2&_nColumnCou ...
12    _Button3_state           hidden    (None)       value=Submit
13    _Button4_state           hidden    (None)       value=Clear
14    _Button5_state           hidden    (None)
value=Forgot%20your%20password%3F
15    _errorMessageBox_state   hidden    (None)
_bVisible=false&_strCaption=
16    _Label3_state            hidden    (None)
_bVisible=false&_strCaption=undefined
17    _menuQuery_state         hidden    (None)
_bVisible=false&_strCaption=undefined
18    _thisPage_state          hidden    (None)
current page: https://wmu.nat.cap.gov/Login.asp?


>> formvalue 1 CAPIDbox $CAPIDbox
current page: https://wmu.nat.cap.gov/Login.asp?
>> formvalue 1 Textbox1 $Textbox1
current page: https://wmu.nat.cap.gov/Login.asp?
>> submit Button3
Note: submit is using submit button: name="Button3", value="None"

ERROR: IgnoreControl instance has no attribute '_click'
current page: https://wmu.nat.cap.gov/Login.asp?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/twill/attachments/20081213/36016267/attachment.html 


More information about the twill mailing list