我正在IE8上进行自动化测试,我需要验证按钮的提示,我自动使用extjs的网站,出于某种原因,IE8和Selenium IDE与IEDriver don& #39;在命令" mouseOver"时工作得很好。我在Firefox中的Selenium IDE上做了以下工作并且它起作用了:
<tr>
<td>mouseOver</td>
<td>//span[text()='Relatórios de Retorno']</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>id=ext-quicktips-tip-innerCt</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>id=ext-quicktips-tip-innerCt</td>
<td>Gera relatórios de retorno</td>
</tr>
但是由于某种原因它不能在IE上工作,即使我停止了Selenium IDE和驱动程序,也可以手动去#34;用鼠标悬停在按钮上,提示不会弹出,所以我在考虑直接通过data-qtip验证它,但我不知道怎么做。这是按钮代码我在IE8上使用了F12,我想验证数据提示的值:
<A aria-disabled=false aria-hidden=false hideFocus style="MARGIN: 0px; TOP: 0px; LEFT: 495px" id=aejs-button-1104 class="x-btn x-unselectable x-box-item x-toolbar-item x-btn-default-toolbar-medium" role=button tabIndex=-1 unselectable="on" data-componentid="aejs-button-1104" data-qtip="Gera relatórios de retorno">
答案 0 :(得分:0)
我找到了使用命令“verifyAttribute”的解决方案,这是我如何做到的:
<tr>
<td>verifyAttribute</td>
<td>id=aejs-button-1104@data-qtip</td>
<td>Gera relatórios de retorno</td>
</tr>