WWW::Mechanize doesn't do Javascript. Now, the IE Mechanize might because it's using OLE to actually run an IE instance. But, the WWW::Mechanize doesn't do JS. Of course, patches are always welcome.
My criteria for good software:
Does it work?
Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
Comment on Re: web mechanize issue with javascript...
Yes, Win32::IE::Mechanize does do Javascript. It behaves a little oddly: code like document.write(...); includes both the original Javascript, as the generated result, in the "source". So it can't be a true compatible replacement for WWW::Mechanize... Once you take that behaviour into account, it works out very well.
An obvious limitation is that it only works on Windows, and you need an install of MSIE. But, given the former, the latter comes as a given. ;-)