51Testing软件测试论坛
标题:
用qtp录制flex时的奇怪现象,谁能解释一下
[打印本页]
作者:
lotuser1997
时间:
2009-7-13 16:09
标题:
用qtp录制flex时的奇怪现象,谁能解释一下
录制的脚本的内容如下,会出现WinObject("MacromediaFlashPlayerActiveX")这个东东,操作会执行两遍。我用的是qtp10和flex3的插件
Browser("FlexStore").Page("FlexStore").WinObject("MacromediaFlashPlayerActiveX").Click 89,102
Browser("FlexStore").FlexApplication("flexstore").FlexCanvas("Home").FlexTextArea("index:6").SelectText 0,0
Browser("FlexStore").FlexApplication("flexstore").FlexCanvas("Home").FlexTextArea("index:6").Input "9300"
Browser("FlexStore").Page("FlexStore").WinObject("MacromediaFlashPlayerActiveX").Type "9300"
Browser("FlexStore").Page("FlexStore").WinObject("MacromediaFlashPlayerActiveX").Click 200,104
Browser("FlexStore").FlexApplication("flexstore").FlexCanvas("Home").FlexButton("Go").Click
Browser("FlexStore").Page("FlexStore").WinObject("MacromediaFlashPlayerActiveX").Click 330,261
Browser("FlexStore").FlexApplication("flexstore").FlexAlert("Go").FlexButton("OK").Click
Browser("FlexStore").Page("FlexStore").Sync
Browser("FlexStore").Close
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2