LubeLee Posted May 31, 2012 Posted May 31, 2012 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,
stormbreaker Posted May 31, 2012 Posted May 31, 2012 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
LubeLee Posted May 31, 2012 Author Posted May 31, 2012 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.
jdelaney Posted May 31, 2012 Posted May 31, 2012 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.
LubeLee Posted June 1, 2012 Author Posted June 1, 2012 I used _IEFrame* but not work so I used _IETagNameGetCollection. The problem is it works with iframes but not work with divs
jdelaney Posted June 1, 2012 Posted June 1, 2012 (edited) Look in the help file for functions that start with _IEFrame ...the function itself is not litteraly '_ieframe*' _IEFrameGetObjByName Edited June 1, 2012 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.
LubeLee Posted June 2, 2012 Author Posted June 2, 2012 I won't work. All I want is to click the COMPOSE to compose a new mail. You can try to do it.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now