上面的脚本是我录制添加附件的操作,但是在回放的时候这句脚本出现错误了。
原因可能是:“Attachment”字段不能手工填写附件路径,而是通过“浏览”button 写入附件路径的,那么上面的脚本是 SET 动作。
不知道需要哪里修改一下脚本,谢谢哪位好心人帮忙解决一下,谢谢先!!!作者: sendy 时间: 2005-11-22 14:05
嘻嘻,给你顶一下!请知道的赶快来帮帮忙吧!作者: 海龙 时间: 2005-11-22 18:20
请把错误信息贴出来作者: happytll 时间: 2005-11-23 08:59
错误提示信息:
Cannot identify the object "attachmentName" (of class WebFile). Verify that this object's properties match an object currently displayed in your application.
Step Name: attachmentName
Step Warning
Object Details
attachmentName Object's physical description:
Visible = -1
Type = file
outerhtml = <INPUT class=filebox onkeypress="file.outerHTML=file.outerHTML.replace(/value=\w/g,'')" onpaste="return false" id=file style="IME-MODE: disabled" type=file onchange=JudgeFiletype(addDocument.attachmentName.value) size=30 value="C:\Documents and Settings\Administrator\My Documents\CVS_Example.csv" name=attachmentName>
Name = attachmentName
Mercury Class = WebFile
Html Tag = INPUT
Html Id = file
default value =
DHTML Class = filebox
attachmentName Object's physical description:
Visible = -1
Type = file
outerhtml = <INPUT class=filebox onkeypress="file.outerHTML=file.outerHTML.replace(/value=\w/g,'')" onpaste="return false" id=file style="IME-MODE: disabled" type=file onchange=JudgeFiletype(addDocument.attachmentName.value) size=30 value="C:\Documents and Settings\Administrator\My Documents\CVS_Example.csv" name=attachmentName>
Name = attachmentName
Mercury Class = WebFile
Html Tag = INPUT
Html Id = file
default value =
DHTML Class = filebox