But with this code I get an error much sooner...the frames collection cannot be retrieved from the Document object reference. This is really weird, because I can call all sorts of other things defined there:#!/usr/bin/perl -w use strict; use Win32::OLE; my $IEWin = Win32::OLE->new('InternetExplorer.Application'); $IEWin->{Visible} = 1; $IEWin->Navigate2('file:///c:/temp/jsFrameset.htm'); my $IEDoc = $IEWin->{Document}; my $frames = $IEDoc->{frames}; ...
But the frames collection eludes me. BTW, why do you want to do this? I ask because there may be a way to do it without this automation code at all.DB<1> x $IEDoc->{URL} 0 'file://C:\\Temp\\jsFrameset.htm' DB<2> x $IEDoc->{fileSize} 0 118 DB<3> x $IEDoc->{fileModifiedDate} 0 '09/02/2005' DB<4>
Celebrate Intellectual Diversity
In reply to Re: Error trying to get the document object from a frame
by InfiniteSilence
in thread Error trying to get the document object from a frame
by traviss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |