我是不是说的不够详细啊,没有大侠回答我的问题,我把Expert View 贴在下面了,就是简单的登陆,用data table 参数化后,运行不成功
没有参数化前的代码
---------------------------------------------------------------------------------------------------------------------------
Dialog("Login").WinEdit("Agent Name:").Set "1111"
Dialog("Login").WinEdit("assword:").SetSecure "4953564a05a01fc23b9ecf6634f49eccbe90c69a"
Dialog("Login").Click 160, 96, micRightBtn
Dialog("Login").Static("Static").Click 12, 78, micRightBtn
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
-----------------------------------------------------------------------------------------------------------------------------
对登陆账号和密码参数化后的代码如下:
-----------------------------------------------------------------------------------------------------------------------------
Dialog("Login").WinEdit("Agent Name:").Set DataTable("Agent_name", dtGlobalSheet)
Dialog("Login").WinEdit("assword:").SetSecure DataTable("assword", dtGlobalSheet)
Dialog("Login").Click 160, 96, micRightBtn
Dialog("Login").Static("Static").Click 12, 78, micRightBtn
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
------------------------------------------------------------------------------------------------------------------------------
运行参数化后 第二行 时的报错:
Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.
我想知道 为什么登陆账号和密码不能用DataTable 参数化,如果不能用DataTable 参数化运行的化,应该怎样设置?
希望各位大侠,帮帮忙!!
谢谢了!
[ 本帖最后由 李志智 于 2008-12-25 18:03 编辑 ] |