Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Description.Create with same propertie and different values, not working
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
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:

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
Reply


Messages In This Thread
RE: Description.Create with same propertie and different values, not working - by harishshenoy - 01-08-2013, 03:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,738 01-17-2017, 11:05 AM
Last Post: JACKSPARROW
  How to find out the object property in the Description language . njnirmal 9 6,736 05-19-2015, 12:30 AM
Last Post: qtptester66523
  Error while creating object using description.create object in VB script SarodeGirish 5 6,323 06-19-2012, 05:30 PM
Last Post: ssvali
  Problem while adding description of an object using a varibale shibinp 2 3,478 08-25-2011, 10:51 AM
Last Post: shibinp
  descriptive programming- object description vnicey 3 4,708 11-24-2010, 01:02 AM
Last Post: Anu123

Forum Jump:


Users browsing this thread: 1 Guest(s)