|
想尝试用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.
我看了看以前录过的脚本,一直到输入网址之前的代码都和之前录过的一个可以跑通的脚本一样。请问这是什么问题呢? |
|