51Testing软件测试论坛

标题: 'ToolbarWindow32‘不能识别的问题 [打印本页]

作者: wangdongting    时间: 2008-7-9 15:03
标题: 'ToolbarWindow32‘不能识别的问题
今天在录制时遇到一个问题,希望有哪位大侠帮我看一下。
这条语句时出错:
Browser("PP - Promotion Management").Dialog("Choose file").WinToolbar("ToolbarWindow32").Press "My Computer"

就是我要录制上传一个文件的过程,这个文件保存在我的电脑里,recorde是可以的,但是在run的时候出现了错误。
错误的是这样说的:Cannot find the "ToolbarWindow32" object's parent "Choose file" (class Dialog). Verify that parent properties match an object currently displayed in your application
Tip:
To better understand the cause of failed steps, you can record movie clips of run sessions and view them together with the step result details.


[ 本帖最后由 wangdongting 于 2008-7-9 15:46 编辑 ]
作者: wangdongting    时间: 2008-7-9 15:24
run到选择文件的时候出错,就是下面这张图片是出错了。
[attach]43790[/attach]

[ 本帖最后由 wangdongting 于 2008-7-9 15:35 编辑 ]
作者: jean_xhq    时间: 2009-4-24 14:17
顶一下,我也遇到这个问题啊,有没有人知道哦?
作者: mklodoss    时间: 2009-4-24 18:32
Cannot find the "ToolbarWindow32" object's parent "Choose file" (class Dialog).
是Dialog("Choose file")找不到。先定位到这个对话框。
作者: wkevin    时间: 2009-4-24 19:25
用Activate先定位窗口,再看进行下一步操作看看.
作者: jean_xhq    时间: 2009-4-30 14:51
不怎么明白,能说得更详细点吗?
作者: jean_xhq    时间: 2009-4-30 16:46
还是没解决。。。。
作者: jean_xhq    时间: 2009-4-30 17:08
问题已经解决,改用 low level recording 就可以




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2