【问题标题】:Identification of dynamic grid with extjs code in selenium webdriver在 selenium webdriver 中使用 extjs 代码识别动态网格
【发布时间】:2014-10-10 03:29:53
【问题描述】:

我有一个用 Extjs 代码填充的动态网格,其中元素 ID 不可见。有人可以让我知道如何找到我正在使用 selenium webdriver 进行编码的元素。提前致谢。

  1. 我添加了 HTML 代码,因为我无法粘贴为图像。此 HTML 是显示动态网格的网格区域。

  2. 除了正文元素之外,HTML 中没有可用的元素

<div id="ext-comp-1117" class=" x-panel">
<div id="ext-gen127" class="x-panel-bwrap">
<div id="ext-gen128" class="x-panel-tbar x-panel-tbar-noheader">
<div id="ext-comp-1118" class="x-toolbar x-small-editor x-toolbar-layout-ct">
<table class="x-toolbar-ct" cellspacing="0">
<tbody>
<tr>
<td class="x-toolbar-left" align="left">
<table cellspacing="0">
<tbody>
<tr class="x-toolbar-left-row"></tr>
</tbody>
</table>
</td>
<td class="x-toolbar-right" align="right"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="ext-gen129" class="x-panel-body x-panel-body-noheader"></div>
</div>
</div>
</div>
</div>
</div>

【问题讨论】:

    标签: selenium


    【解决方案1】:

    我还不能添加 cmets,但请您提供更多信息: 1. html样本? 2. 元素不可见,但它们存在于 html 中吗?

    谢谢

    【讨论】:

      【解决方案2】:

      尝试使用 Ext.ComponentQuery.query 在运行时获取 id。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-01-19
        • 1970-01-01
        • 1970-01-01
        • 2012-06-15
        • 2015-10-30
        相关资源
        最近更新 更多