Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Child Objects method not fetching the count of links
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi,

Have written the below code to click on a link fetch the links under that webpage. where Site Search is a link name and trying to get all the links under Sitesearch page,with the below code.

lnknam="Site Search" 'passng thru a var as i got to parameterize the test

Code:
'Link Object
Set alllink=description.Create
alllink("micclass").value="Link"
alllink("name").value=lnknam


Browser("title:=.*","micclass:=Browser").Page("title:=.*").Link(alllink).Click
Set lnk=Browser("title:=.*","micclass:=Browser").Page("title:=.*").ChildObjects(alllink)
msgbox lnk.count

lnk count value is 1 n again results in Sitesearch, but i want to get all the Likns under SiteSearch webpage.Plz let me knw for any corrections in the above code.

Thanks in Advance
Shwetha
Reply


Messages In This Thread
Child Objects method not fetching the count of links - by Shwethareddy - 10-24-2012, 12:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,073 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Driver Script to control child scripts sumanhyd 1 2,975 07-26-2016, 07:06 PM
Last Post: Ankesh
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,587 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Child object shwetakondekar 0 2,048 07-01-2015, 03:28 PM
Last Post: shwetakondekar
  VB Script to count number of links in a web page. Suma Parimal 4 24,770 07-01-2015, 12:59 PM
Last Post: govind

Forum Jump:


Users browsing this thread: 1 Guest(s)