0

In my Javascript query I am using the following:

document.getElementsByClassName("x-border-panel x-border-layout-ct")[1].getElementsByClassName("x-border-panel")[0];

This then gives me the following result:

<iframe id="ext-comp-1053" name="ext-comp-1053" class=" x-border-panel">
   #document
     <html class="ext-strict">
       <body class="caseTab detailPage">
         <div class="linkList">...</div>
           <a class="link">
             <span class="listTitle">"Example"</span>

What command do I need to use so I can get the information from the "listTitle" class?

  • Is that a virtual DOM or just an iframe's document? Because it looks like an iframe, and that's answered here: [Get IFrame's document, from JavaScript in main document](//stackoverflow.com/q/3999101) – Heretic Monkey Mar 30 '18 at 16:31
  • `contentWindow.document` – BenM Mar 30 '18 at 16:32

1 Answers1

-2
document.getElementByClassName('listTitle')

Here is the documentation

Ryan
  • 31
  • 7
  • That will not match an element in an iframe's document, nor in a virtual DOM's. The OP is already using that function in the code posted, so I'm sure the link to the documentation is not needed. – Heretic Monkey Mar 30 '18 at 16:35