field method for Win32::IE::Mechanize
From: fdl (fdl.1hcbrp_at_news.webfrustration.com)
Date: 12/15/04
- Next message: palemmahesh_at_yahoo.co.in: "Regarding ISA and Inheritance"
- Previous message: Ilya Zakharevich: "Memory Leak in Math::Pari"
- Next in thread: JayEs: "Re: field method for Win32::IE::Mechanize"
- Reply: JayEs: "Re: field method for Win32::IE::Mechanize"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Dec 2004 16:39:41 +0000
Hello,
I'm trying to execute the following (still incomplete) script:
use strict;
use Win32::IE::Mechanize;
my $ie = Win32::IE::Mechanize->new(visible=>1);
$ie->get("something was here but is removed for security reasons");
sleep 1;
my $webpagetext = "nothing yet";
$webpagetext = $ie->content(format=>"text");
my @webforms = $ie->forms;
my $webformstotal = @webforms;
print "number of forms found = $webformstotal\n";
print "webform : $webforms[0]\n";
my $loginform = $ie->current_form;
print "loginform : $loginform\n";
$loginform->field("user",'some user was here');
$loginform->field("password",'some password was here');
but I'm getting the error code :
"Can't locate object method "field" via package "Win32::IE::Form" at
testweb.pl"
Does anyone have any idea what this beginner is doing (stupidly)
wrong?
Thanks in advance,
Filip
-- fdl
- Next message: palemmahesh_at_yahoo.co.in: "Regarding ISA and Inheritance"
- Previous message: Ilya Zakharevich: "Memory Leak in Math::Pari"
- Next in thread: JayEs: "Re: field method for Win32::IE::Mechanize"
- Reply: JayEs: "Re: field method for Win32::IE::Mechanize"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]