Jump to content
Sign in to follow this  
LubeLee

Can't get divs in iframe in Gmail

Recommended Posts

LubeLee

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,

Share this post


Link to post
Share on other sites
stormbreaker

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

Share this post


Link to post
Share on other sites
LubeLee

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.

Share this post


Link to post
Share on other sites
jdelaney

Look into _IEFrameGetCollection and the other _IEFrame* functions


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.

Share this post


Link to post
Share on other sites
LubeLee

I used _IEFrame* but not work so I used _IETagNameGetCollection. The problem is it works with iframes but not work with divs

Share this post


Link to post
Share on other sites
jdelaney

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.

Share this post


Link to post
Share on other sites
LubeLee

I won't work. All I want is to click the COMPOSE to compose a new mail. You can try to do it.

Share this post


Link to post
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
Sign in to follow this  

×