标题: 判断对象为啥不存在? [打印本页] 作者: hotsmile99 时间: 2011-4-16 08:13 标题: 判断对象为啥不存在? Set g_Dialog = Browser("title:=.*").Window("regexpwndclass:=Internet Explorer_TridentDlgFrame","is owned window:=True","is child window:=False","index:=0")
if g_Dialog.Exist then
''do something
end if
这段是没有问题的
但当我把 regexpwndtitle 加入,怎么判断就不行了
Set g_err= Browser("title:=.*").Window("regexpwndtitle:=网页对话框","regexpwndclass:=Internet Explorer_TridentDlgFrame","is owned window:=True","is child window:=False","index:=0")
if g_err.Exist then
''do something
end if