CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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



May 18, 2008, 10:44 AM

Post #1 of 2 (587 views)
Perl HTML form script HELP! Can't Post

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),

$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!


May 19, 2008, 10:18 AM

Post #2 of 2 (575 views)
Re: [ze-m!nd] Perl HTML form script HELP! [In reply to] Can't Post

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.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives