how to display all the links in one page using vb script in qtp.

Answer Posted / sowmya

We can use the page check point to display the number of
links in a web page

or

we can create the child object

set objlink=description.create()
objlink ("micclass").value='weblink'
set odesc=browser("browser").page("browser").childobject
(objlink)

numberoflinks=objlink.count

msg numberoflinks


i think it should work.....

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2733


What is the use of the instr function?

811


What are the environments supported by vbscript language?

721


What are the valid scopes of a variable in vbscript?

838


Why is it recommended to close the database connection every time after the work is completed?

727


please can you help me to get a code of flames using a visual basic 6

1449


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2606


what is event handling?

787


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

2057


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1811


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

2241


What is the purpose of regexp object in vbscript?

791


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1979


If else for do while select in vb script?

866


How to replace junk code recorded by QTP with a mall function.

1879