How does UFT perform the Click method when using the Web Add In?

我与影子孤独终老i 提交于 2019-12-01 09:22:25

It can do either, by default UFT replays using DOM events but you can change the replay type to device in which case it queries the HTML element's location and simulates a mouse click on that location.

The replay mode is controlled by Tools->Opitions->Web->Advanced->RunSettings or in the script by:

Setting.WebPackage("ReplayType") = 2 ''# Changes to device mode
Setting.WebPackage("ReplayType") = 1 ''# Changes to event mode

Note that in event mode UFT doesn't just send a click, it sends other events that typically are used by applications (such as focus, mousedown and mouseup) unless the registry value ReplayOnlyClick in the WebPackage settings is set to 1.

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