首先尝试:
Dim i
i = Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").WebTable("New York to Acapulco").exist(1)
i = True
i = Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").WebTable("innertext:=New York to Acapulco.*","micclass:=WebTable").exist(1)
i = False
spy 出来的结果
class name = WebTable
html tag = TABLE
innertext = New York to Acapulco4/14/2010FLIGHTCLASSPRICEBlue Skies Airlines 361Coach271 Acapulco to New York4/14/2010FLIGHTCLASS PRICEPangea Airlines 632Coach282Passengers:1 Taxes: $45 Total Price (including taxes): $598
name = WebTable