岁月沧桑,物是人非,岁月赋予了我什么:财富?知识?皱纹?生活态度?
QTP如何用脚本关闭对象的智能识别
上一篇 /
下一篇 2011-03-18 09:46:01
/ 个人分类:自动化测试
如果是要在脚本执行过程中禁用所有的智能识别,那只需要在开头加上
Dim App
Set App = CreateObject("QuickTest.Application")
App.Test.Settings.Run.DisableSmartIdentification = True
如果只是要禁用部分对象的智能识别,比如禁用WebEdit的智能识别,就是
Dim App
Set App = CreateObject("QuickTest.Application")
App.Options.ObjectIdentification("webedit").EnableSmartIdentification = False
同样,禁用Browser的智能识别就是
App.Options.ObjectIdentification("browser").EnableSmartIdentification = False
收藏
举报
TAG: