标题: 回放脚本报错说找不到浏览器? [打印本页] 作者: winthnight 时间: 2009-7-17 17:21 标题: 回放脚本报错说找不到浏览器? 想尝试用QTP录验证码,从论坛上找了一篇,把代码拷来了想回放看看
选了web插件的,脚本如下:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Documents and Settings\Administrator","open"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://bbs.yuzi.net/CreateUser.asp"
Browser("Browser").Page("互动交流平台 - Powered By BBSXP").WebEdit("UserName").Set "songfun"
Browser("Browser").Page("互动交流平台 - Powered By BBSXP").WebEdit("UserEmail").Set "songfun@51testing.com"
Browser("Browser").Page("互动交流平台 - Powered By BBSXP").WebEdit("VerifyCode").Click
RunAction "GetChar", oneIteration,myCode
Browser("Browser").Page("互动交流平台 - Powered By BBSXP").WebEdit("VerifyCode").Set myCode
Browser("Browser").Page("互动交流平台 - Powered By BBSXP").WebList("PasswordQuestion").Select "最喜欢的老师"
Browser("Browser").Page("互动交流平台 - Powered By BBSXP").WebEdit("PasswordAnswer").Set "songfun老师"
报错如下(第2行报的错):
The "Browser" object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.