1

我正在尝试使用 HTML/body 标记查找 iframe 中给出的 XPath。

我的应用程序中有两个具有相同标签的注释框。我需要为此找到唯一的 ID。

<tbody>
  <tr class="mceFirst" role="presentation">
    <td class="mceIframeContainer mceFirst mceLast">
      <iframe id="summary_ifr" frameborder="0" src="javascript:"""   allowtransparency="true"         title="Rich Text AreaPress ALT-F10 for toolbar. Press   ALT-0 for help" style="width: 100%; height: 260px; display: block;">
      <html>
        <head xmlns="http://www.w3.org/1999/xhtml">
        <body id="tinymce" class="mceContentBody " contenteditable="true"           onload="window.parent.tinyMCE.get('summary').onLoad.dispatch();" dir="ltr"> 
        </body>
      </html>
      </iframe>
    </td>
  </tr>
</tbody>

我需要为 body id 编写 XPath。

4

0 回答 0