TA的每日心情 | 开心 2015-4-9 15:27 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
请教:以下代码有什么错,要如何调整
pbrowser=environment.Value("browser") 'browser page webedit为环境变量
ppage=environment.Value("page")
Dim pwebedit
Set pwebedit=description.Create()
pwebedit("type").value="text"
pwebedit("name").value=environment.Value("webedit")
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","http://baidu.com","C:\Program Files\Internet Explorer\iexplore.exe"
Browser("title:="&pbrowser).Page("title:="&ppage).WebEdit(pwebedit).Set "测试"
运行时报如下错误:Cannot find the "WebEdit" object's parent "Browser" (class Browser). Verify that parent properties match an object currently displayed in your application. |
|