Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: WWW::Mechanize::Firefox follow link with javascript

by Corion (Pope)
on Dec 10, 2012 at 14:17 UTC ( #1008104=note: print w/replies, xml ) Need Help??


in reply to WWW::Mechanize::Firefox follow link with javascript

You will have to inspect the HTML and Javascript of the page you're automating. As an alternative, you can also use a method that returns DOM objects instead of using a method that returns WWW::Mechanize::Link objects, as per the documentation.
  • Comment on Re: WWW::Mechanize::Firefox follow link with javascript

Replies are listed 'Best First'.
Re^2: WWW::Mechanize::Firefox follow link with javascript
by Anonymous Monk on Dec 10, 2012 at 16:15 UTC

    Thanks for the help. For the benefit of anyone else with this problem, the solution was to use the find_all_links_dom() function which returns the correct sort of link objects to use with the click function.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008104]
help
Chatterbox?
[thezip]: Something like: xargs find . -mindepth 2 -name '*.csv' | wc -l or such?
[thezip]: oops... My mind is backwards (this works): find . -mindepth 2 -name "*.csv" | xargs wc -l

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2016-12-06 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (113 votes). Check out past polls.