本文介绍了使用Selenium IDE,如何将鼠标悬停在引导脚本UI中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用mouseover将鼠标悬停在使用Bootstrap的站点中的某个元素上(我已经尝试过使用按钮,或者只是img类),但是没有运气.这是我要在其上进行一些显示(我要验证)的内容的mouseOver元素.谢谢
I am trying to use mouseover to hover over an element in a site using Bootstrap (I've tried with buttons, or simply img classes) but no luck. Here's my element that I want to mouseOver on for which some content gets displayed (which I want to validate) on doing so. thanks
<span class="label-info form-info" data-toggle="popover" title="Information" data-content="The data that needs to be verified">
我尝试了以下对我不起作用的方法:
I tried the below which didn't work for me:
<tr>
<td>mouseOver</td>
<td>xpath of element location mentioned above</td>
<td></td>
</tr>
推荐答案
当mouseOver悬停在googlesearch按钮上,然后按钮模糊时,请参见下面的google示例.
See google example below when mouseOver over googlesearch button then button is blur.
<tr>
<td>open</td>
<td>https://www.google.co.in/</td>
<td></td>
</tr>
<tr>
<td>mouseOver</td>
<td>id=gbqfba</td>
<td>Google Search</td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>I'm Feeling Lucky</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Google Search</td>
<td></td>
</tr>
<tr>
<td>mouseOut</td>
<td>id=gbqfba</td>
<td>Google Search</td>
</tr>
这篇关于使用Selenium IDE,如何将鼠标悬停在引导脚本UI中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!