Jump to content

Can't get divs in iframe in Gmail


Recommended Posts

I use this code

$ifrs = _IETagNameGetCollection($oIE, "iframe")

MsgBox(0, 1, @extended)

Local $ifr

For $ifr In $ifrs

MsgBox(0, 1, $ifr.id)

If $ifr.id == "canvas_frame" Then ExitLoop

Next

MsgBox(0, 1, $ifr.id)

$divs = _IETagNameGetCollection($ifr, "div") ; get no divs here

MsgBox(0, 1, @extended&"div start")

but I can't get any divs at line $divs = _IETagNameGetCollection($ifr, "div")

Please help,

Link to comment
Share on other sites

Since you didn't post much of a proper code, so I suggest replacing '==' in your script with '=', I think that's alright?

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

Since you didn't post much of a proper code, so I suggest replacing '==' in your script with '=', I think that's alright?

You're wrong, '==' is right. I have no problem with it. But I have problem with $divs = _IETagNameGetCollection($ifr, "div").

$ifr is ok but I can't get any divs inside it. This is my problem.

Link to comment
Share on other sites

Look in the help file for functions that start with _IEFrame ;)...the function itself is not litteraly '_ieframe*'

_IEFrameGetObjByName

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...