|
我在QTP上用描述性编程编写了下面的代码
systemutil.Run "c:/program files/internet
explorer/iexplore.exe","http://www.baidu.com"
Set oBrowser=description.Create
Set oPage=description.Create
Set oEdit=description.Create
oBrowser("micclass").value="Browser"
oPage("micclass").value="Page"
oEdit("name").value="wd"
Browser(oBrowser).Page(oPage).WebEdit(oEdit).Set "helloworld"
在运行最后一行脚本时,系统报错:
Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.
Line (8): "Browser(oBrowser).Page(oPage).WebEdit(oEdit).Set "helloworld"".
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
高手帮忙解决一下,为何会出现这种问题? |
|