If Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("title:=" &frame,"name:= mainFrame").Link("text:=" & RFQ_Number).Exist(1) Then
Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("title:=" &frame,"name:= mainFrame").Link("text:=" & RFQ_Number).click
else
msgbox "Don't have the No. you want"
End If
End Function
我也是新人,不知道说得有没有问题作者: lixnyq 时间: 2010-2-5 13:42 标题: 回复 5# 的帖子 用描述性编程也查找不到。提示:
Cannot find the "[ WebEdit ]" object's parent "[ Frame ]" (class Frame). Verify that parent properties match an object currently displayed in your application.
Function file: C:\RFQ\SelectRFQ.vbs
Line (10): " Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("title:=" &frame,"name:= mainFrame").WebEdit("name:=sRfqNo","html tag:=INPUT").Set RFQ_Number".作者: onlonely 时间: 2010-2-5 13:59
1,Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("topFrame").Link("text:=" &link).click
描述的这个对象无法正确找到唯一对象
2,Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("title:=" &frame,"name:= mainFrame").WebEdit("sRfqNo").Set RFQ_Number
任何父对象使用了描述性编程,那么其子对象也必须使用描述性编程
显然你这段话梅满足这个说明作者: lixnyq 时间: 2010-2-5 14:02 标题: 回复 7# 的帖子 2。即使使用描述性编程
Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("title:=" &frame,"name:= mainFrame").WebEdit("name:=sRfqNo","html tag:=INPUT").Set RFQ_Number
提示一下信息:
Cannot find the "[ WebEdit ]" object's parent "[ Frame ]" (class Frame). Verify that parent properties match an object currently displayed in your application.
Function file: C:\RFQ\SelectRFQ.vbs
Line (10): " Browser("OfficeMax").Page("OfficeMax_RFQ").Frame("title:=" &frame,"name:= mainFrame").WebEdit("name:=sRfqNo","html tag:=INPUT").Set RFQ_Number".