Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2014-07-14 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (262 votes), past polls