QTP??webtable?в?????????
???????????? ???????[ 2014/7/16 13:51:19 ] ????????QTP ????????????
????’ ??????WebTable??????????ChildItem????????????е?????????????????????
????’ ???WebTable????
????Set objTable = Browser("???? ??????").Page("???????").WebTable("???±???")
????intRow = 2
????intCol = 1
????’ ???ChildItem?????????е????????
????Set objLink = objTable.ChildItem(intRow?? intCol?? "Link" ?? 0)
????’ ????????
????objLink.click
????_______________________________________________
????’???webtable???????????????????????
????numRows = Browser("???? ??????_2").Page("???????").WebTable("???±???").RowCount
????For i=2 to numRows
????title_text =Browser("???? ??????_2").Page("???????").WebTable("???±???").GetCellData(i??1)
????If trim(title_text) = trim(articleTitle) Then
????reporter.ReportEvent 0??"??????"??"?????б?????????????±???"
????Exit For
????End If
????Next
????’???table?к?????????????????????????
????’’’’’’’’’’’Function : ??webTable?в??????’’’’’’’’’
????Function FindedItemInTable(pageObj1??WebTable_Obj1??searchStr??PageNum)
????’ Finded ?????????table?????????
????’ currentPage:??????numRows????????????
????Dim Finded??currentPage
????Finded = false
????’?????????????
????For currentPage = 1 to PageNum
????’==================??????????????????????==========================
????’ If currentPage = 1 Then
????’ pageObj.Link("pageLink").SetTOProperty "text"??1
????’ pageObj.Link("pageLink").SetTOProperty "href"??"javascript:forward(1)"
????’ If pageObj.Link("text:=1"??"href:=javascript:forward(1)").Exist(1) Then
????’ pageObj.Link("text:=1").Click
????’ End If
????’ End If
??????
???·???
??????????????????
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