发布新日志

  • qtp无法录制iframe编辑器的问题

    2009-02-06 18:24:51

    对于iframe编辑器无法录制的解决方案:
    原因在于在该网页中使用了iframe作为编辑器,iframe不能被QTP直接识别,需要手动添加该控件到repository中。
    方法是按正常程序录制后,利用QTP的识别功能,在active screen窗口中找到编辑器控件,右键选择"view/add object...",在object property 对话框中点击"add to repositories","view in repositories"按钮,然后编辑innertext属性值为“测试”,该对象就添加成功了。最后手动添加操作:
    Browser("XXX").Page("XXX").frame("Frame").WebElement("WebElement").Object.innerText ="测试"
Open Toolbar