Madhan
Madhan

Reputation: 1321

Perl WWW-Mechanize Module

I am using www-mechanize module to access website controls. Some html pages contains frames. I cant get the links names and i am unable to access the links in frames. Please any one suggest right solution to resolve this issue.

Working Platform: Windows, Perl

Thanks in advance

Upvotes: 1

Views: 343

Answers (1)

ysth
ysth

Reputation: 98508

From what I see, WWW::Mechanize does not load frames automatically; you need to do so yourself. You can get links to the frames with:

@frames = $mech->find_link( 'tag' => 'frame' );

and then $mech->get each one (cloning your mech object if necessary).

Upvotes: 9

Related Questions