QTP??Windows????????????????
???????????? ???????[ 2013/12/31 15:28:10 ] ????????QTP
????????????????QTP???????????IM???????????????????EXPLOR???????QTP?????WinObject: Internet Explorer_Server????????????ò??????????????£???????????????Explorer????棬??????Page?????????????????????????????winObject????Browser???????????????????????????????????
hwnd = Window("Popup").GetROProperty("hwnd")
Msgbox Browser("hwnd:=" & hwnd).Exist(0)
Msgbox Browser("hwnd:=" & hwnd).Page("micclass:=page").Exist(0)
Browser("hwnd:=" & hwnd).Page("micclass:=page").WebButton("name:=Approve").Click
??????? ??????????false??????????????????????£???????????????н?????QTP?汾?????????????????tools->Register New Browser Control??????????????£?????????÷?????
?????????????????????綣??????????????????????????壨???????????壩????QTP????????????Page??WebElement???????????е???????????????????壬???????????????????????????????????????????????????????????????????????????????????Σ??????Register???????й??????????????????????????????????.??????????
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebElement"
oDesc("html tag").Value = "DIV"
oDesc("class").Value = "MsgHistory"
Set EleConlection = Window("test(???:29855207)").Page("MsgHistory").ChildObjects(oDesc)
for i = 0 To EleConlection.Count - 1
print EleConlection(i).GetROProperty("innertext"??1000)
Next
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11