|
录制的脚本的内容如下,会出现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 |
|