UTF简单脚本录制(飞机订票系统)
Posted HZQ_HZA
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UTF简单脚本录制(飞机订票系统)相关的知识,希望对你有一定的参考价值。
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简单脚本录制(飞机订票系统)的主要内容,如果未能解决你的问题,请参考以下文章