Why this kind of code below, getting the tag name's element of the ID's element:
#include <IE.au3>
$oIE = _IECreate("http://www.example.com/", 0, 1, 1)
Sleep(5000)
$element = $oIE.document.getElementById("element_id")
$tags = $element.getElementsByTagName("IFRAME")
For $tag In $tags
$msg = $tag.contentWindow.document.body
MsgBox(0, "Message", $msg.innerHTML)
Next
And also this code, getting the class name's element of the ID's element:
#include <IE.au3>
$oIE = _IECreate("http://www.example.com/", 0, 1, 1)
Sleep(5000)
$element = $oIE.document.getElementById("element_id