Using Selenium IDE how can I mouseover elements in bootstrap scripted UIs?

南楼画角 提交于 2019-12-13 02:48:00

问题


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>

回答1:


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>


来源:https://stackoverflow.com/questions/17444659/using-selenium-ide-how-can-i-mouseover-elements-in-bootstrap-scripted-uis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!