Can't find forms in a webpage using Perl module - WWW:Mechanize

≯℡__Kan透↙ 提交于 2019-12-11 02:04:31

问题


I am using the perl module WWW:Mechanize

Until now everything was fine, but for a certain webpage it seems unable to find an existing form:

<form id="formaction" method="post" action="omadm_locate.php">

Although when I print the content of the page, the expected page is printed and its the right page.

I have used print Dumper($mech->forms()); it gave me nothing;

$mech->forms returned nothing;

Everything tells me that the page has no forms although it has, same thing for the input files...

Btw I was able to access other forms in other pages using the excat method.


回答1:


In old versions WWW::Mechanize got errors to search some forms. It's important if you're using some Linux distribution with customs packages which aren't very updated.



来源:https://stackoverflow.com/questions/7345696/cant-find-forms-in-a-webpage-using-perl-module-wwwmechanize

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!