ermai has asked for the wisdom of the Perl Monks concerning the following question:
submit tag in HTML of the end of the first frame when linking it<html> ....... <frameset rows="40%,*"> <frame name="rtop" src="123.asp" target="rbottom"> <frame name="rbottom" src="444.html" scrolling="auto"> ....... </noframes> </frameset> </html>
My Perl code<td width=28% align=center> <input type="submit" name="act" value="xxx" class="cbutton">
#!c:\\perl\\bin use strict; use WWW::Mechanize; my $url = "myurl"; my $Part = 'mykey'; my $outfile1 = "out1.html"; my $mech = WWW::Mechanize->new(); $mech->get($url); $mech->follow_link(tag => "frame"); # open first frame in document $mech->field ('' => $Part); $mech->submit(); $mech->follow_link(tag => "frame"); # open 2nd frame in document, whe +re it hangs my $output_page = $mech->content(); open(OUTFILE, ">$outfile1"); print OUTFILE "$output_page"; close(OUTFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing frames with WWW::Mechanize
by haukex (Archbishop) on Feb 12, 2018 at 16:40 UTC |