Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how do find current links in webpage for ex: in
yahoowebsite today mainpage is having 50 links and next day
same page is having 60 links. if i run same programe it
should display total links in webpage ?

Answers were Sorted based on User's Feedback



how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and..

Answer / badri

Above script for weblists

To count No of Links in webpage:

Set chobj=description.Create
chobj("micclass").value="Link"
Set obj=Browser(" ").Page(" ").ChildObjects(chobj)
'Count the no of objects
n=obj.count
msgbox "No of Links: "&n

Is This Answer Correct ?    11 Yes 0 No

how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and..

Answer / bkiranratna

Set oDesc = Description.Create()

oDesc("micclass").Value = "WebList"

Set Lists = Browser("Mercury Interactive").Page("Mercury
Interactive").ChildObjects(oDesc)

NumberOfLists = Lists.Count()

Is This Answer Correct ?    2 Yes 1 No

how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and..

Answer / u v r murthy

By using Page Check point also we could find out the total
link which are available in that particualr page.

Procedure: insert Standard check point then select any
object in the page, you will get Object selections popup,
there u can select page object, again you will get one more
popup called "Page Check point properties" in this popup
make sure that u have selected Links check box under ALl
OBJECTS IN PAGE then click ok.

Finally run the script. you will get the no of links
available in current used page in result window

Is This Answer Correct ?    1 Yes 0 No

how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and..

Answer / sudheerreddym

Set link obj=description.Create
linkobj("micclass").value="link"
Set link childobjs=browser("Yahoo").Page("Yahoo").chldobjects(linkobj)childcount=link childobjs.Count

for i=0 to child Count-1
msgbox link childobjs(i).getRoproperty("innertext")
next
if u want to click on the last link on that page:

browser("Yahoo").page("Yahoo").link(index:="&childCount-1).cclick
set linkobj=nothing

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.

3 Answers   IBM,


How can we close all webbrowsers which are opened in out desktop?

3 Answers  


How to test the mandatory fields in QTP?

1 Answers   SoftSolve, TE,


What is vulnerability?

1 Answers   CTS,


can we test an windows application using qtp

1 Answers  


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

0 Answers   CFC,


Hi Guys, I tried to install java add-in for QTP 9.5 after the whole installation but it didn't install but then i also found in documentation saying that winrunner7.6 patch for java plugin would work fine with QTP. But when i tried to install from winrunner7.6 it asks me for the path of winrunner So my question is are we supposed to install winrunner for java add in to work on QTP. Please suggest me

1 Answers  


It is very difficult to test in manual for that we go to DATA DRIVEN TEST.

3 Answers  


I have the following Doubts Please clarify me with examples? 1.Could QTP cover entire application? or part of the application? 2.Shall we rewrite(modify) the Manual testcase to automate? 3.How can I execute my scripts through client mechine which is not having QTP installation 4.Few objects are not being identified by QTP afeter one month. what could be the reason for this (I am using trail version of 15 days)

2 Answers   Livetek,


Did u use check points during ur work experience ?

3 Answers   FedEx,


how to open Excel sheet & write in it & save it?

1 Answers   InTech,


what are the mandatory properties for a tex boxc (scenario?)

0 Answers  


Categories