Home: Perl Programming Help: Beginner:
Perl HTML form script HELP!



ze-m!nd
Novice

May 18, 2008, 10:44 AM


Views: 671
Perl HTML form script HELP!

Hey everyone,

I'm trying to make a perl script that logs me into my account, and fills this form for me for my job, but i cant get it past a drop down menu,

wat a person would manually do is put the mouse over this button, and list would drop down, then you'd click on your link... i think this is still considered a drop down menu, not an image link/java script thing....

I've tried using (all from WWW::mech),




Code
$mech->follow_link( url_regex => qr/download/i ); 

$mech->follow_link( text => 'download', n => 3 );

$mech->follow_link( n => 3 );

$mech->find_link( text => 'News', url_regex => qr/cnn\.com/ );
....

$mech->follow_link( url_regex => qr/download/i );

$mech->follow_link( text => 'download', n => 3 );

$mech->follow_link( n => 3 );

$mech->find_link( text => 'News', url_regex => qr/cnn\.com/ ); ....




I used all these generic codes for my project (followed by a $mech->click() )but i couldnt get it past my drop down menu,

this drop down menu is one of those "onmouse" drop down menus... like on a news page

any help or advise? plz...

thank you ahead of time!


KevinR
Veteran


May 19, 2008, 10:18 AM


Views: 659
Re: [ze-m!nd] Perl HTML form script HELP!

WWW::Mechanize does nopt support javascript so it will not work. Look into Win32::IE::Mechanize instead, not sure it will work either, and I have never used it so can't help with it's interface or questions.
-------------------------------------------------