可能是页面还没有全部显示的缘故,以致于当脚本跑到这句话时,这个对象还没显示出来,QTP就找不到合适的对象来匹配,所以报错了.加等待时间可能 能解决这个问题.也可以来参考一下这两个方法.
object.Sync
( Waits for the browser to complete the current navigation. )
object.WaitProperty
( Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. )
出现两个password的脚本,可能是你操作的缘故,应该可以去掉一个的