问题来了!使用datatable输出值,再datatable参数化引用,引用不了,求解!
Dialog("Login").WinEdit("Agent Name:").Set "test"Dialog("Login").WinEdit("Password:").SetSecure "5530f0abed3177193a7e1671d8d11034c4bd4891"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").ActiveX("MaskEdBox").Type "061616"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Dialog("Flights Table").WinList("From").Select "13225 FRA 07:24 PM LON 08:07 PM AA $172.47"
Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "test1"
Window("Flight Reservation").WinEdit("Name:").Output CheckPoint("Name:")'使用datatable存储输出值
Window("Flight Reservation").WinButton("&Insert Order").Click
Window("Flight Reservation").WinButton("Button").Click
Dialog("Open Order").WinCheckBox("Customer &Name").Set "ON"
Dialog("Open Order").WinEdit("Edit").Set DataTable("datatable", dtLocalSheet) 'datatable参数化引用之前存储的输出值
Msgbox Datatable.RawValue("datatable","Action1")'这里会显示test1,而软件运行时输入的却还是test.
Dialog("Open Order").WinButton("OK").Click
Dialog("Search Results").WinButton("OK").Click
Window("Flight Reservation").Close
我使用弹出框命令显示输入test1,但是订票软件在运行的时候,我看到的却是test,这是为什么?datatable存的值,掉了,所以引用不了么?有其他的方面么?求大神,详细解答,感激不尽。
Open Order 对话框中 Customer Name 不支持数字1~8,你就是手动在软件输入也是显示test。你可以把test1换成test0或test9或其他英文字母就正确了
页:
[1]