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
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
msgbox g_Dialog.GetRoProperty "regexpwndtitle" '这儿不知道用不用加括号,忘了
end if