Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^11: Not able to select the form with WWW::Mechanize::Firefox using form_with_fields()by Corion (Patriarch) |
on Jun 30, 2011 at 16:28 UTC ( [id://912207]=note: print w/replies, xml ) | Need Help?? |
Ouch! Looking at the source code as Firefox renders it, the problem becomes apparent immediately:
Firefox happily (and likely in accordance with some HTML specification) moves all the input elements outside of the form, as the form nastily spans across <td> elemenst without respecting their allowed nesting. As WWW::Mechanize::Firefox relies on Firefox doing the heavy lifting, there is nothing I can do. Maybe you can work around things by specifying explicit XPath expressions to get at the respective DOM elements. Your post highlighted another error - currently, ->form_with_fields will not respect <select> or <textarea> elements - this will be changed in the next version.
In Section
Seekers of Perl Wisdom
|
|