in reply to Re^2: WWW::Mechanize::Firefox clicking on a div doesn't work
in thread WWW::Mechanize::Firefox clicking on a div doesn't work

Hi there,

We're venturing into non Perl territory here. What you're seeing are Javascript errors, and really not on topic here. There are other sites to choose from.

Briefly, you're trying to evaluate an html id, the value of which isn't valid javascript.

Good luck.

  • Comment on Re^3: WWW::Mechanize::Firefox clicking on a div doesn't work

Replies are listed 'Best First'.
Re^4: WWW::Mechanize::Firefox clicking on a div doesn't work
by bbrown25 (Initiate) on Oct 28, 2014 at 21:47 UTC
    I understand. Should the WWW:M:F module be able to click through regardless? If I feed it the div and x,y coordinates both shouldn't the javascript fire off without me needing to do an eval_in_page? Thanks for your help.

      The support for coordinates in ->click did not work at all in versions of WWW::Mechanize::Firefox before 0.78.

      Still, you will need to learn how Javascript interacts with HTML if you want to automate Javascript-heavy websites.