标题: SQAGetProperty得到的值,报1003错误 [打印本页] 作者: xingfuzhu1020 时间: 2006-7-27 18:52 标题: SQAGetProperty得到的值,报1003错误 Sub Main
Dim Result As Integer
Dim varStr as String
'想实现的功能:插入验证点后,在SQAGetProperty函数里取得varStr的值并显示出来
Window SetTestContext, "Caption=VendorRequests - Microsoft Internet Explorer", ""
Result=SQAGetProperty("Caption=VendorRequests - Microsoft Internet Explorer;\;HTMLTitle=VendorRequests;\;HTMLId=Hyperlink2","innerText",varStr)
msgbox varStr
Window SetContext, "Caption=VendorRequests - Microsoft Internet Explorer", ""
HTML Click, "HTMLId=Form1", "Coords=608,68"
HTMLLink Click, "HTMLId=Hyperlink2", ""