开发者

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

开发者 https://www.devze.com 2023-04-03 16:54 出处:网络
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:

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="omad开发者_运维问答m_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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消