WWW::Mechanize find link and follow link
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
精彩评论