I am working on a PERL script to automate the retrieval of information from a server which uses frames and post-backs (Using Win32::IEAutomation )
I am having a lot of difficulties addressing the desired control on the desired frame.
My understanding was that frames work in a hierarchy where a frame may contain one or more additional frames ad-infinitum.
I have created a simple collection of html files on my local HDD and can address the controls ok, using my PERL script, yet when I try to do it on the real web-server I get an error.
my $url = 'https://www.somesite.com'
my $mech->gotoURL( $url );
my $f1 = $mech->getFrame("name:", "Frame1");
$data = $f1->Content();
# works up to here
my $f2 = $f1->getFrame("name:", "Frame2");
#does not work
# Can't call method "Content" on an undefined value at 1.pl line 159.
$data = $f2->Content();
I have checked the $data and it contains the frame with the name Frame2, what is going wrong?
Why would it work with my simulated html and not on the web-server?