Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

is WWW::Mechanize::Firefox appropriate for this?

by sherab (Scribe)
on Oct 06, 2011 at 01:47 UTC ( #929906=perlquestion: print w/ replies, xml ) Need Help??
sherab has asked for the wisdom of the Perl Monks concerning the following question:

Hey guys, I have been using WWW::Mechanize to handle logging in to a site's initial page, and the second one. The third one I am having a problem with.

I know that WWW::Mechanize doesn't support Javascript which made me wonder if WWW::Mechanize::Firefox might be the way to go.

Specifically the button I need to click is encased in this...
<a target="_self" title="Selection" href="listing.php?selection=576354 +" class="selection_link">Selection</a>


A straight post doesn't work (i.e. http://thesite.com/listing.php?selection=576354 )

I just thought I'd see if anyone had any pointers or advice.

In the interest of making lemonade when handed lemons, I will make a donation to the Perl Foundation if I can get the answer to this.

Comment on is WWW::Mechanize::Firefox appropriate for this?
Download Code
Re: is WWW::Mechanize::Firefox appropriate for this?
by Gangabass (Priest) on Oct 06, 2011 at 02:10 UTC
    I'm sure you can click on this button with WWW::Mechanize::Firefox with no problems.
Re: is WWW::Mechanize::Firefox appropriate for this?
by Corion (Pope) on Oct 06, 2011 at 06:10 UTC

    If a page is problematic, the first step is always to find what is different between the data your script sends and the data a browser sends. Use (for example) the Mozilla Live HTTP Headers to see what the browser is sending and compare that against the data your script sends.

    If you already have WWW::Mechanize::Firefox installed, it might be an easy win to just switch over.

Re: is WWW::Mechanize::Firefox appropriate for this?
by Anonymous Monk on Oct 06, 2011 at 09:10 UTC

    I don't see any javascript. I see a regular link -- one that is accessible with a simple HTTP GET.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://929906]
Approved by keszler
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-09-22 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls