Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

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.

Replies are listed 'Best First'.
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 Gangabass (Vicar) 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 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://929906]
Approved by keszler
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2018-04-22 04:05 GMT
Find Nodes?
    Voting Booth?