logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: WWW:Mechanize help clicking button: msg#00011

Subject: Re: WWW:Mechanize help clicking button
Hi Gedanken,

I tried that and $m->submit(1), $m->submit(2) and $m->submit(3).

It is taking me to the page:

          <td><font class="AccountHeader">
            ONLINE TRANSACTIONS</font><br><br>
You have successfully terminated your session.<br> Please <a href="http://www.roycefunds.com"; class="AccountBodyLink">Click here</a> to return to <i>The Royce Funds</i> website.
          </td>

There is a first button that says "end your session" and this is what is being clicked.

I will send you the whole html page to look at and my program. I think there is something going on in the java code in the first part.

Thank you again,

Joe.

***********************************************


<html>
  <head>
    <title>
      The Royce Funds: Account Login
    </title>
<link rel="STYLESHEET" type="text/css" href="/mf/royce/roycefunds.css">

  <SCRIPT LANGUAGE="javascript1.1">
<!--

       function setValue()
       {
           document.forms[4].rtin.value=document.forms[1].tin.value;
           return true;
       }

       function setValue1()
       {

          document.forms[5].rtin1.value=document.forms[1].tin.value;
          return true;
       }

function popUp(mypage, myname, w, h, scroll) {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll +',resizable'
   win = window.open(mypage, myname, winprops)
}

//-->
</SCRIPT>

  </head>


<body bgcolor="#ffffff" marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>

<table width=771 cellpadding=0 cellspacing=0 border=0>
  <tr>
<td align=right valign=middle width=179 height=75><img src="/mf/royce/images/logo_royceonline.gif" alt="Royce Funds Online" width="179" height="75"></td> <td align=right valign=middle><font color=#bebebe><a href="http://www.roycefunds.com"; class="accountNavLink">royce homepage</a> &nbsp;| &nbsp;<A href="/tf/FANWeb?tx=MFHelp&cz=51714240204&tidx=87714140727afe2d2e075e -6e2710101042m8&scr=contact" class="accountNavLink">contact us</a> &nbsp;| &nbsp;<A href="/tf/FANWeb?tx=MFHelp&cz=51714240204&tidx=87714140727afe2d2e075e -6e2710101042m8&scr=help" class="accountNavLink">help</a> &nbsp;&nbsp;</font></td>
  </tr>

  <tr>
<td><img src="/mf/royce/images/graphic_computer.jpg" alt="" width="178" height="55"></td> <td background="/mf/royce/images/yellow_grid.gif" width="592" height="55" align=right valign=middle>
      <form action="/tf/FANWeb" method="post">
        <input type="hidden" name="tx" value="MFEndSession">
        <input type="hidden" name="cz" value="51714240204">
<input type="hidden" name="tidx" value="87714140727afe2d2e075e-6e2710101042m8">
        <input type="hidden" name="scr" value="endsess">
<input type="image" border=0 name="End Session" src="/mf/royce/images/button_logoff.gif"><img src="/mf/royce/images/blank.gif" height=1 width=20>
    </form></td>
  </tr>

<!-- REMOVED SPACER .GIF; FORM TAG PUSHES CONTENT DOWN
<tr>
<td colspan=2><img src="/mf/royce/images/blank.gif" height=20 width=1></td>
</tr>
 -->
</table>


<form name="actsel" action="/tf/FANWeb" method="post">
  <input type="hidden" name="tx" value="MFAccountPosition">
  <input type="hidden" name="cz" value="51714240204">
<input type="hidden" name="tidx" value="87714140727afe2d2e075e-6e2710101042m8">
  <input type="hidden" name="DoNewAccount" value="true">



<table cellspacing=1 cellpadding=1 width=771>
  <tr>
    <td>


      <table cellspacing=1 cellpadding=1 width=761 align=center>
        <tr>
<td colspan=2><font class=AccountHeader>ACCOUNT LOGIN</font></td>
        </tr>

        <tr>
          <td colspan=2>
You may proceed with the <b>Account Login</b> if you are an existing Royce account holder who has previously completed the <b>registration</b> process below.
          </td>
        </tr>

        <tr>
          <th align=left width=28%>Social Security Number / TIN:</th>
<td align=left width=72%><input size=9 maxlength=9 type="text" name="tin" value=""> <i>without dashes</i></td>
        </tr>

        <tr>
          <th align=left>Password / PIN:</th>
<td align=left><input size=8 maxlength=8 type="password" name="pin" value=""> <i>if you've forgotten your PIN, <a href="#resetpin" class="bodyLink">click here</a></td>
        </tr>

        <tr>
          <td align=left colspan=2>
              <input type="hidden" name="accessmethod" value="SSN">
              <input type="hidden" name="portfolio" value=1 checked>
<input type="image" name="Submit" border=0 src="/mf/royce/images/button_login.gif">
          </td>
            </form>
        </tr>

        <tr>
          <td colspan=2><hr></td>
        </tr>
      </table>

      <table cellspacing=1 cellpadding=1 width=761 align=center>
        <tr>
        <form action="/tf/FANWeb" method="post">

<td><font class="AccountHeader">REGISTER FOR ROYCE ONLINE ACCOUNT ACCESS</font>
                </td>
                </tr>
                <tr>
<td>If you are an existing Royce account holder and would like to access your account information online, click the <b>Register</b> button below.
                </td>
                </tr>
                <tr>
                <td>
                <input type="hidden" name="tx" value="MFCreatePIN">
        <input type="hidden" name="cz" value="51714240204">
<input type="hidden" name="tidx" value="87714140727afe2d2e075e-6e2710101042m8">
        <input type="hidden" name="scr" value="crpinreq">
<input type="image" name="createpin" border=0 src="/mf/royce/images/button_register.gif">
          </td>
          </form>
          </tr>
          </table>


      <table cellspacing=1 cellpadding=1 width=761 align=center>
        <tr>
<td colspan=2><hr><font class=AccountHeader>OPEN A NEW ACCOUNT</font></td>
        </tr>
        <tr>
          <td colspan=2>
If you are not an existing Royce account holder and would like to invest with us, please enter your Social Security Number below and click the <b>Open New Account</b> button below. The subsequent screens will guide you through the process to open your new account.<br> If you already are a Royce account holder and wish to open additional accounts online, please proceed through the <b>Account Login</b> above.<br>&nbsp;
  </td>
  </tr>
<form name="rpin" action="/tf/FANWeb" method="post">
  <tr>
          <th align=left width=28%>Social Security Number / TIN:</th>
<td align=left width=72%><input size=9 maxlength=9 type="text" name="rtin1" value=""> <i>without dashes</i></td>
        </tr>
        <tr>
        <td colspan=2>
        <input type="hidden" name="tx" value="MFNasu">
        <input type="hidden" name="cz" value="51714240204">
<input type="hidden" name="tidx" value="87714140727afe2d2e075e-6e2710101042m8">
        <input type="hidden" name="agree" value="1">
        <input type="hidden" name="scr" value="nsurequest">
        <input type="hidden" name="accessmethod" value="SSN">
        <input type="hidden" name="fromwhatpge" value="fromActSelSn">
<INPUT TYPE="hidden" VALUE="Establish New Account" name="Submit"> <input type="image" border="0" src="/mf/royce/images/button_open_new_account.gif">
            <br>
If you are a <b>non-U.S. investor</b>, please read this <a href="http://www.roycefunds.com/notices/non_us_investors.html"; onclick="popUp(this.href,'name','400','150','yes');return false;" class="bodyLink">special notice</a>.<br><br> <a href="http://www.roycefunds.com/openaccount/openOnline.html"; class="bodyLink">Click here</a> for more information on which types of accounts can be opened online.
              </td>
              </form>
        </tr>
        <tr>
          <td colspan=2>
            <hr>
          </td>
        </tr>
         <form name="rpin" action="/tf/FANWeb" method="post">
        <tr>
<td colspan=2><a name="resetpin"></a><font class="AccountSubHeader">Forgot your PIN?</font><br>Reset a lost or forgotten PIN using the Reset PIN Question and Answer that you established when you first created your PIN.<br></td>
                 </tr>
                 <tr>

          <th align=left width=28%>Social Security Number / TIN:</th>
<td align=left width=72%><input size=9 maxlength=9 type="text" name="rtin" value=""> <i>without dashes</i></td>
</tr>
<tr>
<td colspan=2>





   <input type="hidden" name="tx" value="MFResetPIN">
                <input type="hidden" name="cz" value="51714240204">
<input type="hidden" name="tidx" value="87714140727afe2d2e075e-6e2710101042m8">
                <input type="hidden" name="agree" value="1">
                <input type="hidden" name="scr" value="rpinreq">
                <input type="hidden" name="accessmethod" value="SSN">
<input type="hidden" name="fromwhatpge" value="fromActSelSn"> <input type="image" name="" border=0 src="/mf/royce/images/button_reset_pin.gif">
            </td>
              </form>
        </tr>



        <tr>
          <td colspan=2>
          <hr><font class="AccountSubHeader">Login Problems?</font><br>
If you are experiencing problems logging in, please contact Shareholder Services at (800) 841-1180, Monday through Friday, 9 a.m. - 6 p.m. Eastern time.<br>

            <hr><font class="AccountSubHeader">About Security</font><br>
We have taken appropriate measures to ensure that all of your Royce Online Account Access activity remains both confidential and secure. Shareholders who want to establish Online Account Access must have a secure web browser that uses Secure Sockets Layer (SSL) technology with 128-bit encryption. This helps to keep your use confidential. Your Social Security Number and PIN will both be encrypted. If you have any questions about security, please call Investor Services at (800) 221-4268.
          </td>
        </tr>
         <tr>
          <td colspan=2>
            <hr>

<font class="accountFooter">&copy; 2004 Royce & Associates, LLC, 1414 Avenue of the Americas,
New York, NY 10019. All rights reserved.

<br>Distributor of The Royce Fund: Royce Fund Services, Inc. View our
<A href="/tf/FANWeb?tx=MFHelp&cz=51714240204&tidx=87714140727afe2d2e075e -6e2710101042m8&scr=privacy" class="accountFooterLink">Privacy
Policy</a>.</font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;
</body></html>



******************************************************


#!/usr/bin/perl -w
# roycefunds - downloads account info from royce funds website
#
use strict;
use WWW::Mechanize;
use HTML::TreeBuilder;
use HTML::TableExtract;
use My::Sql;

my $m = WWW::Mechanize->new( autocheck => 1);
$m->agent_alias( 'Windows IE 6' );

main('###########', '################');

sub main
{
        my ($id, $pass) = @_;

$m->get('https://www2.financialtrans.com/tf/FANWeb? tx=Disclaim&cz=51714240204') || die\
 "can't get login screen";

        $m->set_visible($id, $pass );
        $m->submit();


        my $html = $m->content;

        print $html;

        exit;



On Aug 5, 2004, at 2:57 PM, Gedanken wrote:

try

$m->submit()

and see what happens

--
gedanken





<Prev in Thread] Current Thread [Next in Thread>