sridevi_1505
05-30-2008, 08:02 AM
Hi all,
#!/usr/bin/perl
use strict;
use warnings;
use Win32::IE::Mechanize;
my $ie = Win32::IE::Mechanize->new( visible => 1 );
$ie->get( "http://in.yahoo.com/" );
# my $name=qq|name='p'|;
# my $value="Web";
$ie->form_name( "form1" );
$ie->field(my $name='p',"Web");
I am trying to Enter the text in the textbox for doing a search.
But i dont know if the last line the correct api to use.
Please help me out.
#!/usr/bin/perl
use strict;
use warnings;
use Win32::IE::Mechanize;
my $ie = Win32::IE::Mechanize->new( visible => 1 );
$ie->get( "http://in.yahoo.com/" );
# my $name=qq|name='p'|;
# my $value="Web";
$ie->form_name( "form1" );
$ie->field(my $name='p',"Web");
I am trying to Enter the text in the textbox for doing a search.
But i dont know if the last line the correct api to use.
Please help me out.