dushkin 1 Posted August 9, 2010 Hi guys, I attach to the post a part of an html file I need to work on. I need to reach the lowest html node you see there, inside all the frames. Can you advice me the way? Please notice that not every frame\frameset has a name or an id to assist us to fetch it. Many Thanks! Share this post Link to post Share on other sites
PsaltyDS 42 Posted August 9, 2010 Where they have names you just use _IEFrameGetObjByName(), and where they don't use _IEFrameGetCollection() and the 0-based index (i.e. 0 = first, 1 = second). So in the example you posted: $oFramSet1 = _IEFrameGetObjByName($oIE, "UserFrames") ; by name $oFrameSet2 = _IEFrameGetCollection($oFrameSet1, 1) ; 1 = 2nd index $oFrame = _IEFrameGetObjByName($oFrameSet2, "UserMain") ; by name $oForm with _IEFormGetObjByName($oFrame, "frmReport") ; by name Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites
dushkin 1 Posted August 10, 2010 (edited) Where they have names you just use _IEFrameGetObjByName(), and where they don't use _IEFrameGetCollection() and the 0-based index (i.e. 0 = first, 1 = second). So in the example you posted: $oFramSet1 = _IEFrameGetObjByName($oIE, "UserFrames") ; by name $oFrameSet2 = _IEFrameGetCollection($oFrameSet1, 1) ; $oFrame = _IEFrameGetObjByName($oFrameSet2, "UserMain") ; by name $oForm with _IEFormGetObjByName($oFrame, "frmReport") ; by name Thanks PsaltyDS! Found it!!! Mainly by trial and error... $oFrameSet1 = _IEGetObjByName($oIE, "UserFrames") ; by name $oFrameSet2 = _IEFrameGetCollection($oFrameSet1, 1) ; Don't know why but that was redundant... $oFrame = _IEFrameGetObjByName($oFrameSet1, "UserMain") ; by name $oForm = _IEFormGetObjByName($oFrame, "frmReport") ; by name Many thanks! Edited August 10, 2010 by dushkin Share this post Link to post Share on other sites