16:??????????IE?е?AtiveX????????????

  A:TOOL---OPTIONS----Ative screen

    ????advanced..????LOAD ACTIVEX CONTROLS??

    TOOL---OPTIONS----Ative screen

    ????advanced..??run scr??pts-->disabled!

17????β?????link

Browser("Browser").Page("Page").Sync

Browser("Browser").Navigate"http://www.51testing.com/cgi-bin/index.php"

Browser("Browser").Page("51Testing??????????---????????????????????").Sync

Settags=Browser("Browser").Page("51Testing??????????---????????????????????").Object.links

Dim i??j?? arr()

i=0

For Each element in tags

   If Ucase(element.tagname)="A" andleft(element.InnerText??1)="[" Then

                       ReDim Preserve arr(i+1)

                   arr(i)=element.InnerText

   i=i+1

       end if

Next

For j=0 to i

                       Browser("Browser").Page("51Testing??????????---????????????????????").Link("[?????????? ]").SetTOProperty "Text"??arr(j)

           Browser("Browser").Page("51Testing??????????---????????????????????").Link("[?????????? ]").Click

                       Browser("Browser").Back

Next

??δ????????????????棬???????url.

????????????

????????а????????????link???????

?浽???????檔

??????SetTOProperty????????????μ?link???????

???????click

18. QTP??Debug??????Export View ??????д???κζ???

A:?????????????debug?????????????й?????????????Debug view??Command???????????????????????й????????????????????

?磺Window("FlightReservation").WinEdit("Name:").Set "51testing"

?????У?????????????“51testing”?“testing”????????command?????

Window("FlightReservation").WinEdit("Name:").Set "testing"

19??????仯???λ??

????

VAL=Browser("?????????????").Page("?????????????").Frame("managePlace_7").WebRadioGroup("userAccountId_0").GetROProperty("Value")

Browser("?????????????").Page("?????????????").Frame("managePlace_7").WebRadioGroup("userAccountId_0").selectval

20??????????Table????? link?? text?