selenium 鼠标悬浮_QTP以及selenium的mouseOver使用 鼠标悬停的事件很给力!

QTP对 界面上元素的鼠标悬停,弹出tips或者自动弹出窗口,需修改replaytype,

既在操作之前,加入:

Setting.WebPackage("ReplayType") = 2 。

再 +   .FireEvent "onmouseover" 一般是能生效的。

关于QTP的replaytype

What is ReplayType?

ReplayType is QTP Web Add-in setting. It can be used to change how the events are replayed on the browser. There are two modes of ReplayType

Events (1) – Replay of events using the Browser methods (something similar to DOM).

Mouse (2) – Replay of events using the mouse and keyboard simulation.

When to change ReplayType?

Use of ReplayType can be best explained by a below example. In below sample textbox we need to type in any value and see that the button gets enabled when there some text in the textbox and disabled when there is not text. Click on the button will display the values inside the textbox.

-------------------------------------------------------------------------------

而selenium 完成任务,如下即可(IDE工具中):

mouseOverid=userInfo

0

1

分享到:

18e900b8666ce6f233d25ec02f95ee59.png

72dd548719f0ace4d5f9bca64e1d7715.png

2011-08-04 17:42

浏览 2192

评论

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值