learnperl has asked for the wisdom of the Perl Monks concerning the following question:
Here is the part of the my code that use the WWW:Mechanize, My code has other parts which are not related to the WWW:Mechanize, I didn't put all the code since those are not relevant to WWW::Mechanize.<div id="treeform" class="treeformWide"> <form> <div id="elementsContainer" class="clearfix"> <div class="formElement"> <label for="firstName">Your First Name</label> <input id="tree_fn" size="15" type="text"> </div> <div class="formElement"> <label for="lastName">Your Last Name</label> <input id="tree_ln" size="15" type="text"> </div> <div class="formElement"> <label for="gender">YourGender</label> <select id="tree_gen" name="gender"> <option selected="selected"value="M">Male</option> <option value="F">Female</option></select> </div> </div> <div style="text-align: center; clear: both; padding-top: 10px;"> <input name="start" class="p_btn" id="star +t" value="Get Started" onclick="submitInfo();s_objectID='hp_build_tre +e';return false;" type="submit"> </div> </form> </div>
It will be a great help if someone could guide me on this.. Thanks in advance..#!/usr/bin/perl use Text::Soundex; use LWP; use WWW::Mechanize; my $mechObject = WWW::Mechanize->new(); $mechObject -> get($url); $mechObject->field($queryString); $mechObject->click();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use WWW::Mechanize or LWP to interface with WEB
by erroneousBollock (Curate) on Nov 16, 2007 at 04:19 UTC | |
by learnperl (Acolyte) on Nov 16, 2007 at 06:35 UTC | |
by erroneousBollock (Curate) on Nov 16, 2007 at 07:04 UTC | |
by learnperl (Acolyte) on Nov 16, 2007 at 07:43 UTC | |
by erroneousBollock (Curate) on Nov 16, 2007 at 07:47 UTC | |
| |
|
Re: use WWW::Mechanize or LWP to interface with WEB
by naikonta (Curate) on Nov 16, 2007 at 04:22 UTC |