in reply to Error trying to get the document object from a frame
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error trying to get the document object from a frame
by traviss (Initiate) on Sep 15, 2005 at 00:01 UTC | |
|
Re^2: Error trying to get the document object from a frame
by InfiniteSilence (Curate) on Sep 15, 2005 at 13:00 UTC |