开发者

WWW::Mechanize find link and follow link

开发者 https://www.devze.com 2023-03-17 12:17 出处:网络
Using WWW::Mechanize, I\'ve try to find link with text_regex => qr/Next/ and follow the link with success, but I\'m having problem with the link that look like this:

Using WWW::Mechanize, I've try to find link with text_regex => qr/Next/ and follow the link with success, but I'm having problem with the link that look like this:

"< img alt="" src="images/pager-spacer.gif" >
    < input type="submit" class="l开发者_运维知识库ink-btn" id="ctl00_ctl00_ContentPlaceHolder1_phSearchHeader_pgrTop_btnNext" onclick="javascript:suppressPopUp();" value="Next" name="ctl00$ctl00$ContentPlaceHolder1$phSearchHeader$pgrTop$btnNext> < img alt="" src="images/gtn.gif"> "

How do I find and follow link like that.

Thank you.


Did you try to just submit the form since the input type is submit, $mech->submit(); should work

0

精彩评论

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