|
本帖最后由 xwm259695 于 2012-2-22 09:56 编辑
- SystemUtil.Run "C:\Program Files\开票系统(1.0)\app.exe","","C:\PROGRA~1\app~1.0)","open"
- PbWindow("w_welcome").PbComboBox("ddlb_userid").Select "259695"
- PbWindow("w_welcome").PbButton("确定").Click
- Window("开票系统").Window("Window").WinEdit("Edit").SetSecure "4f443fa6739b680f08642bcb156b5e231f564fe3fd0f"
- Window("开票系统").Window("Window").WinButton("确定").Click
- Window("开票系统").PbObject("PbObject").Click 36,27
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "好多的热闹啦"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "9999999999999908"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "VRV-900"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "VXT980"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Click 647,137
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").SetCellData "#0","#0","z中分工"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "z中分工"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "89709"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "14241"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "vrv908"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "88888888888888887"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "100.00"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Click 646,213
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").SetCellData "#0","#0","中国的东西就是好"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "中国的东西就是好"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").SetCellData "#0","#0","0.03"
- Window("开票系统").Window("开票").PbDataWindow("PbDataWindow").Type "0.03"
- Window("开票系统").Window("开票").WinButton("开具[M]").Click
- Window("开票系统").Dialog("提示信息").WinButton("是(Y)").Click
- Window("开票系统").Dialog("提示信息").WinButton("确定").Click
- Window("开票系统").Window("开票").WinButton("下一张[N]").Click
复制代码
总是运行到打开程序,就停止了,而且报错如下:
The test run cannot continue due to an unrecoverable error.
Cannot find the "ddlb_userid" object's parent "w_welcome" (class PbWindow). Verify that parent properties match an object currently displayed in your application.
求解答??? 协议我选择的是Activex+pb |
|