答案 0 :(得分:0)
您可以使用.GetTextLocation
查找文字的位置,然后点击它。
posLeft = -1
posTop = -1
posRight = -1
posBottom = -1
Set myObj = Browser("Echo'Net - Home_2").WinObject("DirectUIHWND")
If myObj.GetTextLocation ("Open", posLeft, posTop, posRight, posBottom) Then
' the text was found within the object, click in the middle.
myObj.Click posLeft + (posRight - posLeft)/2, posTop + (posBottom - posTop)/2
End If