码迷,mamicode.com
首页 > 其他好文 > 详细

UTF简单脚本录制(飞机订票系统)

时间:2017-09-12 00:06:29      阅读:540      评论:0      收藏:0      [点我收藏+]

标签:添加   type   col   用户   输入   images   png   code   acea   

1、直接录制脚本-文件-新建-测试-GUI-创建

技术分享技术分享

技术分享

2、录制配置-添加程序路径

技术分享

技术分享

3、录制-输入用户名密码、机票事件地点、查询航班情况、登机人,提交

Dialog("Login").WinEdit("Agent Name:").SetSelection 0,6
Dialog("Login").WinEdit("Agent Name:").Set "dfsdf"
Dialog("Login").WinEdit("Password:").SetSecure "59b6acea03753379834e341b7f6f7c97ae887c3b"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").ActiveX("MaskEdBox").Click 7,8
Window("Flight Reservation").ActiveX("MaskEdBox").Type "10"
Window("Flight Reservation").ActiveX("MaskEdBox").Type  micBack 
Window("Flight Reservation").ActiveX("MaskEdBox").Type  micLeft 
Window("Flight Reservation").ActiveX("MaskEdBox").Type  micBack 
Window("Flight Reservation").ActiveX("MaskEdBox").Type  micBack 
Window("Flight Reservation").ActiveX("MaskEdBox").Type "109"
Window("Flight Reservation").ActiveX("MaskEdBox").Type  micBack 
Window("Flight Reservation").ActiveX("MaskEdBox").Type "0918"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "20263   DEN   11:12 AM   LON   06:23 PM   AA     $112.20"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "test"
Window("Flight Reservation").WinButton("Insert Order").Click

4、点击运行,即可回放操作

 

UTF简单脚本录制(飞机订票系统)

标签:添加   type   col   用户   输入   images   png   code   acea   

原文地址:http://www.cnblogs.com/HZQHZA/p/7507943.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!