in reply to Re: Filling out a form on password page
in thread Filling out a form on password page
I am getting the error: There is no numbered form 1 at login.pl. How can this be when the URL I am using has atleast one form?#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); my $page = "https://www.realquest.com/jsp/rq.jsp?action=switch&page=ma +in"; $mech->get($page); $mech->form_number('1'); $mech->field('username' => 'test'); my $results = $mech->submit(); print $results->content(), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Filling out a form on password page
by Anonymous Monk on Jul 27, 2007 at 18:02 UTC |