xiangyier 2008-3-28 14:36
通过点击浏览按钮导入文件怎么实现呢?
Import file的时候,每次都得通过点击browser button 手工导入,怎么用ST实现呢?:L
xiangyier 2008-3-31 11:37
导入文件的时候,选择Excel类型,点击Continue的时候才能跳转到Browser页面,可是,回放的时候没有点击Continue,也转不到点击浏览的页面.报错如下:
[ ] *** Error: Window '[BrowserChild]ImportExcel' was not found
[ ] Occurred in DoClick
[ ] Called from ImportExcel.Browse.Click at htmlpage.inc(380)
[ ] Called from Importfile at Import files.t(7)
[ ] *** wMainWindow should be of class BrowserChild
huajing_wu 2008-4-29 10:17
把有continue按钮的那个窗口录制下来,做成自定义窗口,可能是silktest不能自动识别那个窗口。
titan2k 2008-5-7 17:02
可以尝试录制窗口 如果那个按钮是默认首选建议可以用TypeKeys("<Enter>") 不知道可以不可以
jackiepsq 2008-5-15 23:51
[ ] *** Error: Window '[BrowserChild]ImportExcel' was not found
[ ] Occurred in DoClick
[ ] Called from ImportExcel.Browse.Click at htmlpage.inc(380)
[ ] Called from Importfile at Import files.t(7)
[ ] *** wMainWindow should be of class BrowserChild
根据提示信息没有找到窗口,先看看silktest是否可以识别当前窗口,看错误信息,应该是识别不了当前的窗口,请确认当前页面是否存在父类,如果是的话,必须将父类也要先识别下来。如果可以识别当前窗口,估计是你Continue按钮不能识别,将该按钮定义成标准控件就可了.