01-08-2013, 03:23 PM
because it considered the recent 'innertext' value i.e 'Blue Skies Airlines 361' which is only 1 on the screen , in this case you have to use the regular expression , while taking count of the object you have to use the properties which are sufficient to identify the similar types of objects.
Try the below code, I think this will return 2 for you:
Thanks,
Harish SHenoy
Try the below code, I think this will return 2 for you:
Code:
Set flight=Description.Create()
flight("micclass").value="WebElement"
flight("innertext").value="Blue Skies Airlines.*" '/To identify the objects of similar kind
flight("html tag").value="B"
set nflights = Browser("name").Page("title").ChildObjects(flight)
msgbox "Number of flights: " &nflights.Count
Thanks,
Harish SHenoy