|
方法①:
If Browser("micClass:=Browser").Dialog("text:=Microsoft Internet Explorer").Exist(0) Then
wait 1
str = Browser("micClass:=Browser").Dialog("text:=Microsoft Internet Explorer").GetVisibleText
MyArray = Split(str, vbcrlf , -1, 1)
msgbox MyArray(1)
If Replace(MyArray(1)," ","")="XXXXX" then
Browser("micClass:=Browser").Dialog("text:=Microsoft Internet Explorer").WinButton("text:=确定").Click
end if
End If
方法②:
If Browser("micClass:=Browser").Dialog("text:=Microsoft Internet Explorer").Exist(0) Then
wait 1
msgbox Browser("micClass:=Browser").Dialog("text:=Microsoft Internet Explorer").Static("window id:=65535").GetROProperty("regexpwndtitle")
End If |
|