获取某个参数的值 value

Window("Flight Reservation").WinEdit("Order No:").Output CheckPoint("Order No:")'

 

 

 

Dim orderno'将生成的订单号输出,并保存在orderno中
Dialog("Login").WinEdit("Agent Name:").Set "admin"
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure "5821cef45dfb690625fcabfe5a8670de60f8b846"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "111216"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "20329 FRA 07:12 AM LAX 02:23 PM AA $112.20"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "lee"
Window("Flight Reservation").WinButton("Insert Order").Click
wait(15)
Window("Flight Reservation").WinEdit("Order No:").Output CheckPoint("Order No:")'
'msgbox datatable("Order_No",dtglobalsheet)
msgbox datatable("Order_No",dtglobalsheet)
orderno=datatable("Order_No",dtglobalsheet)
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set orderno'将查询条件设置为刚刚生成的订单号
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Output CheckPoint("Edit")'输出查询结果,比较是否一致
msgbox datatable("order2",dtglobalsheet)
If datatable("Order_No",dtglobalsheet)=datatable("order2",dtglobalsheet)Then
msgbox "sussesful"
else
msgbox "fail"
End If
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"

 

转载于:https://www.cnblogs.com/yunman/p/6084117.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值