求助斑竹及各位test同行。关键字:robot 、java、控件内容,回放。急呀。谢谢先
情况:我用robot录制用JAVA编写的程序。回放的时候没有回放成功,只回放到显示选择下拉菜单那一步,但是没有选择,更谈不上点击保存的步骤了。然后robot就显示回放失败的界面了。脚本具体如下Sub Main
Dim Result As Integer
'Initially Recorded: 2007-12-316:08:23
'Script Name: test1
Window SetContext, "Caption=System", ""
Browser SetApplet,"JavaCaption=System",""
SetThinkAvg 32
EditBox Click, "Type=EditBox;Index=1", "Coords=607,394"
SetThinkAvg 1266
ComboListBox MakeSelection, "Type=ComboListBox", "Text=8 × E1"
SetThinkAvg 1641
PushButton Click, "Type=PushButton;Name=Save"
Window SetContext, "Caption=Message", ""
Browser SetApplet,"JavaCaption=Message",""
SetThinkAvg 1344
PushButton Click, "Type=PushButton;Name=OK"
End Sub
请问是什么原因呢?java enable 还有JDK都已经安装及java环境变量也设置好了。
参见附件的 图片
!
看一下具体是在哪一行失败的 如果实在不行用low-level级别录制吧 解决了同志们,不用鼠标点击。用键盘选择就可以了 robot就这样,能用键盘操作时尽量用键盘!除非一定要鼠标操作。 http://www.pgpop.com/image/face1.gif8错8错,支持~~~http://qb.lqualyn.com/images/sigline.gif
毛孔粗
页:
[1]