I'm trying to get to level 6 of the children, but there is a problem. Level 5 is not an element. That is, level 4 has no children. Literally 5 level "#document" .

I tried to format it as a document, but an error appears that the method is not supported.

chelement4 - these are the elements of level 4

 doc := chelement4.document as IHTMLDocument2; DocSch := doc.all as IHTMLElementCollection; for inde := 0 to DocSch.Length - 1 do begin Elementhtm := DocSch.item(inde, 0) as IHTMLElement; memo1.lines.Add('дочерние 5ый уровень ' + Elementhtm._classname + Elementhtm.tagName); end; 
  • How is this not an element? Sample document in the studio! - Sergey
  • @Zavet there is even an arrow, showing what can be deployed :) - Sublihim
  • @Zavet, but if you are not allowed inside #document, then this is your crossdomain address, since #document contains frame content - Sublihim
  • In javascript, access to a document inside a frame is obtained in the following way: ` var frameDocument = document.getElementById('myframe').contentWindow.document . Look for an analogue of the contentWindow function in Delphi. And the frame itself must be loaded. I have no idea whether dolphies are loading frames. - Sergey

0