I am trying to automate the process of filling up the webforms and do a submit .
I have the below program written but If I run the program . I get the following error message
Can't call method "value" on an undefined value at C:/Perl/site/lib/Win32/IE/Mec
hanize.pm line 900.
Please let me know your inputs on the same
[CODE=perl]
#!c:\perl\bin\p erl.exe
use strict;
use HTTP::Cookies;
use LWP::debug qw(+);
use Win32::IE::Mech anize;
my $outfile = "out.htm";
my $url = "http://www.mindsrc.com/index.php?id=ca reers_submit";
my $mech= Win32::IE::Mech anize->new();
$mech->get($url);
sleep 10;
$mech->form_name("sub app");
my $f = "14232";
my $l = "6847";
sleep 5 ;
$mech->field(first => $f);
$mech->click();
#use LWP::debug qw(+);
my $output_page = $mech->content;
open(OUTFILE, ">$outfile" );
print OUTFILE "$output_pa ge";
print $output_page;
close(OUTFILE);[/CODE]
Kindly guide me how can I get over this issue.
Mithun
I have the below program written but If I run the program . I get the following error message
Can't call method "value" on an undefined value at C:/Perl/site/lib/Win32/IE/Mec
hanize.pm line 900.
Please let me know your inputs on the same
[CODE=perl]
#!c:\perl\bin\p erl.exe
use strict;
use HTTP::Cookies;
use LWP::debug qw(+);
use Win32::IE::Mech anize;
my $outfile = "out.htm";
my $url = "http://www.mindsrc.com/index.php?id=ca reers_submit";
my $mech= Win32::IE::Mech anize->new();
$mech->get($url);
sleep 10;
$mech->form_name("sub app");
my $f = "14232";
my $l = "6847";
sleep 5 ;
$mech->field(first => $f);
$mech->click();
#use LWP::debug qw(+);
my $output_page = $mech->content;
open(OUTFILE, ">$outfile" );
print OUTFILE "$output_pa ge";
print $output_page;
close(OUTFILE);[/CODE]
Kindly guide me how can I get over this issue.
Mithun
Comment