|
首先用没加载Web的QTP创建一个Action,Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Output CheckPoint("Internet Explorer_Server") 然后在这个Action上加一个输出参数之后把脚本保存下来, 然后新开一个加载Web的QTP进行网页的录制,然后把之前的那个Action用"Call to Copy of Action"的方式加载进来
之后在run的时候,在验证码的地方出现以下错误:说下面那个不在对象库中
The "Microsoft Internet Explorer" 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.
Line (1): "Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Output CheckPoint("Internet Explorer_Server")".
请问这时我该怎么做才能每次在进入这个页面的时候QTP能从网页获取图片里的验证码然后成功set进去? |
|