Jump to content

Recommended Posts

Posted
;This is the Frame hierarchy I'm dealing with
;I want the last frame on the end with the asterisks
;Frame
;   Frameset
;      Frame
;      Frame
;      Frame
;      Frameset
;         Frameset
;         Frame*
         
$oFrame = _IEFrameGetCollection($oIE)
$oFrameset = _IEFrameGetCollection($oFrame, 0)
$oFrameset2 = _IEFrameGetCollection($oFrameset, 3)
$oFrame2 = _IEFrameGetCollection($oFrameset2, 1)

I'm after $oFrame2 because that's where the Input tags are that I need to set the values.  But when I do an:

_IEIsFrameset($oFrameset)
_IEIsFrameset($oFrameset2)

The first one is true and the second one is false.  Where would $oFrameset2 be?  What's the proper way to get to $oFrame2?

  • 2 weeks later...
Posted

Welcome to the forum.

Did you solve your problem ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

For this function

_IEIsFrameSet()

there is quite interesting example:

<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>_IE_Example("frameset")</title>
</head>
<frameset rows="25,200">
    <frame name="Top" src="about:blank">
    <frameset cols="100,500">
        <frame name="Menu" src="about:blank">
        <frame name="Main" src="about:blank">
    </frameset>
</frameset>
</html>
; Display the frameset example, get frame collection,
; check number of frames, display number of frames or iFrames present

#include <IE.au3>
#include <MsgBoxConstants.au3>

Local $oIE = _IE_Example("frameset")
Local $oFrames = _IEFrameGetCollection($oIE)
Local $iNumFrames = @extended
If $iNumFrames > 0 Then
    If _IEIsFrameSet($oIE) Then
        MsgBox($MB_SYSTEMMODAL, "Frame Info", "Page contains " & $iNumFrames & " frames in a FrameSet")
    Else
        MsgBox($MB_SYSTEMMODAL, "Frame Info", "Page contains " & $iNumFrames & " iFrames")
    EndIf
Else
    MsgBox($MB_SYSTEMMODAL, "Frame Info", "Page contains no frames")
EndIf

_IEQuit($oIE)

Try to play with it.

If you run into trouble again, then come back here.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...