Window(OrderPage).WinButton("text:= flight").Click '查看机票信息
Window(OrderPage).Dialog("text:=Flights Table","Class Name:=Dialog").WinButton("text:=ok").Click '关闭机票信息窗口
Window(OrderPage).WinEdit("Class Name:=WinEdit","attached text:=Name:").Set"zhangfei" '订票人
Dim rage,i
i=RandomNumber(0,2)
Select Case i
Case "0"
rage="First"
print(rage)
Window(OrderPage).WinRadioButton("Class Name:=WinRadioButton","text:="&rage).Set
Case "1"
rage="Business"
print(rage)
Window(OrderPage).WinRadioButton("Class Name:=WinRadioButton","text:="&rage).Set
Case "2"
rage="Economy"
print(rage)
Window(OrderPage).WinRadioButton("Class Name:=WinRadioButton","text:="&rage).Set
End Select '选择机舱
Window(OrderPage).WinButton("Class Name:=WinButton","text:=&Insert Order").Click
Window(OrderPage).WinMenu("menuobjtype:=&2").Select "File;New Order" '再新订一张票,描述性编程
End Function