10-24-2012, 12:45 PM
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
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
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