参考:
http://knowledgeinbox.com/articles/qtp/settings/when-to-change-qtp-web-replaytype-setting/
什么是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.
在QTP脚本中的使用方法:
Setting.WebPackage("ReplayType") = 2 'Mouse Browser("KnowledgeInbox").Page("ReplayType").WebEdit("txtReplayType").Set "KnowledgeInbox" Browser("KnowledgeInbox").Page("ReplayType").WebButton("Type and enable me").Click Setting.WebPackage("ReplayType") = 1 'Events |