in reply to Win32 IE Mechanize unclickable links

but for some unknown reason, this line returns an array with nothing. Same

Where is getElementsByClass supposed to come from?

  • Comment on Re: Win32 IE Mechanize unclickable links

Replies are listed 'Best First'.
Re^2: Win32 IE Mechanize unclickable links
by Timboh56 (Initiate) on Jun 17, 2011 at 14:28 UTC
     $mech->agent()->Document->getElementsByClass('ClickMe'); $mech is a Win32::IE::Mechanize object.

      What does the documentation say that ->getElementByClass returns? Maybe you can find the appropriate method to call in the documentation?

        It should return a "collection of objects". I store it in an array but the array always turns out to have a size of 0.