获取tooltip几种方法 方法2 方法3

1
2
3
4
5
6
7

Browser("XXXX").Page("YYYY").Link("Link A").MouseOver
' Wait 1 second to get the tool tip displayed.
wait 1
' Capture the text of the tooltip object
txt= Window("nativeclass:=tooltips_class32").GetROProperty("text")
msgbox txt

方法2

1
2
temp=Brower("name").Page("page").Image("imagename).GetROProperty("alt") 
msgbox temp

方法3

1
2
temp=Brower("name").Page("page").Image("imagename).GetROProperty("tooltip") 
msgbox temp