QTP????????WebElement
???????????? ???????[ 2015/12/11 13:50:25 ] ??????????????????
???????????????????????????????????
????setpo=browser("creationtime:=0").page("micclass:=page")
????setdesc=description.creatre()
????odesc("micclass").value="WebEdit"
????odesc("htmltag").value="input"
????…………
??????html????????htmltag????input???????textarea??
????<textarearows="3"cols="20">
????????.........????
????</textarea>
????description??item???????????????????????
????odesc.Item.RegularExpression=true
?????????????????
odesc("micclass").value="WebEdit"????
odesc.Item.RegularExpression=true????
odesc("htmltag").value="input|textarea"??????
???????input??testarea?????????????????
?????Щjs????У???????tag????????Щ???
??????div????????qtp????????webelement??
??????webedit???????????webedit??webelement?????й????
????????????????
setdesc=description.creatre()????
‘odesc.Item.RegularExpression=true????
odesc("micclass").value="WebElement"????
odesc("htmltag").value="input|textarea|div"
???????????
????‘???????????
functionsendkeys(propertyname??propertyvalue??value)
????setpo=browser("creationtime:=0").page("micclass:=page")
????‘po?????д??????????
????setdesc=description.creatre()
????odesc("micclass").value="WebElement"
????odesc("htmltag").value="input|textarea|div"
????'?????????tag????????д???
????odesc(propertyname).value=propertyvalue
????setchild=po.childobject(odesc)
????ochild(0).setvalue
????’?????????index????????????
????endfunction
????????????????????????????????????????????????????WebElement?????棬???htmltag????????????????“|”?????????tag?????е????
?????????
????callsendkeys("xpath"??"//input[@name='username']"??"test001"??
????????????????????????????micclass?????????д??webelement??
???????qtp???????web???????????????????????????????????
??????
???·???
??????????????????
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