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



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

Answer / 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

More VB Script Interview Questions

create a form to accept username and password validate the username and password with using message box, display the corresponding user message

0 Answers   CSC,


Is VBscript case-sensitive?

3 Answers  


How to get path of the file through scripting?

1 Answers   Hexaware,


how to write basic programs in VB Script like addition, multiplication?

14 Answers  


How to capture a runtime error in vbscript?

0 Answers  






Inorder to avoid Message box while writing script which alternative method can be used?

1 Answers  


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

0 Answers   Amazon,


what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use?

4 Answers   Perot Systems,


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

0 Answers  


write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links

1 Answers  


How to generate 3 digit random number?

3 Answers   IBM, Virtusa,


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

0 Answers  


Categories