Internet Explorer Automation Object Crossframe Element Troubles
Daniel E. Burrow
danieleburrow at yahoo.com
Fri Jul 19 13:58:57 EDT 2002
Paul Rubin <phr-n2002b at NOSPAMnightsong.com> wrote in message news:<7xn0sobjg8.fsf at ruckus.brouhaha.com>...
> danieleburrow at yahoo.com (Daniel E. Burrow) writes:
> > I am able to fire cross-frame elements now but doing so in the manner
> > shown in the *** ClickCrossFrameElement *** method below troubles me
> > greatly: ...
>
> What is troubling you?
Greetings!
I did not understand why I had to specify "Document" and then
"document". I now understand that I am gaining access to the full DOM
by the first "Document" and then access to the "document" collection
by the second "document".
My method now looks as follows:
def ClickCrossFrameElement(self, i_FrameId, s_ElementNameOrId):
o_IE_Dom = self.o_IE.Document
o_IE_Dom.frames[i_FrameId].document.all(s_ElementNameOrId).click()
Your reply is most welcome.
Mr. Hammond deserves heralded accolades for what he has given and
continues to give to the Python world.
Joyfully,
Daniel
More information about the Python-list
mailing list