|
本帖最后由 yanfang84 于 2012-11-22 19:10 编辑
<object width="112" height="112" class="swfupload" id="SWFUpload_0" data="http://192.168.1.51/sns/public/js/swf/swfupload.swf?preventswfcaching=1353573678421" type="application/x-shockwave-flash" SelectFile="null" SelectFiles="null" StartUpload="null" ReturnUploadStart="null" StopUpload="null" CancelUpload="null" RequeueUpload="null" GetStats="null" SetStats="null" GetFile="null" GetFileByIndex="null" GetFileByQueueIndex="null" AddFileParam="null" RemoveFileParam="null" SetUploadURL="null" SetPostParams="null" SetFileTypes="null" SetFileSizeLimit="null" SetFileUploadLimit="null" SetFileQueueLimit="null" SetFilePostName="null" SetUseQueryString="null" SetRequeueOnError="null" SetHTTPSuccess="null" SetAssumeSuccessTimeout="null" SetDebugEnabled="null" SetButtonImageURL="null" SetButtonText="null" SetButtonTextPadding="null" SetButtonTextStyle="null" SetButtonAction="null" SetButtonDisabled="null" SetButtonCursor="null">
这个是flash的元素代码,请帮忙看看,按照里面的type和class创建了新对象,但是父对象却和应用程序的对象不匹配。
完整脚本是:
Browser("AAAAA").Page("AAAAA").Link("个人主页").Click
Browser("AAAAA").Page("AAAAA-BBBBB").Link("上传图片").Click
Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").WinTable("FalshButton").Click'641,382'点击falsh按钮,FalshButton是我新建的对象
Window("Microsoft Internet Explorer").Window("选择要上载的文件,通过: 192.168.1.51").WinObject("FolderView").Click 82,245'打开window窗口
Browser("AAAAA").Dialog("YY").WinListView("SysListView32").Select DataTable("FileName", dtLocalSheet) '对上传的文件名参数化
Window("Microsoft Internet Explorer").Window("YY").WinObject("打开(O)").Click 27,9'选择文件后点击window窗口上的“打开”按钮
Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Click 621,609
Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Click 606,590
Browser("AAAAA").Page("AAAAA-BBBBB").WebButton("发布").Click
回放时的错误信息: |
|