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

What is Querystring collection?

0 Answers  


hi, How will write a regular expression of date in VB scripting.

1 Answers  


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

0 Answers   Microsoft,


How to select a value from a list box by using Selenium web-driver?

2 Answers   HCL,


who you define variables and functions in VB?

1 Answers  






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

0 Answers   IBM,


Please Example programms on vbscript 1)writing functions and calling functions

2 Answers   CIL, TCS,


how to retrive the tooltip by using descriptive programming in qtp?

3 Answers   iGate,


what is extension of the file if its saved from recovery manger to some drive

1 Answers  


I am running a windows based application.While running the script on QTP ,The Application pop-up an Error Message as "object Disabled" in two different scenarios Scenario 1-->The Application pop-up up a Message for Max Session Reached(as the application is set to hold 2 session and if if crosses the pre-defined limit then the error message pop-up) Scenario 2-->When Network connectivity is disabled the Application screen gets greyed out in colour with no operation possible. Now through Exception handling features in QTP ,we need to do the following For Scenarion 1-->Through Exception handling we need to just accept the Message pop-up in the Application and and resume with the call function as is for Scenario 2--> Through Exception Handling featutes on QTP we need to shut down the client , restart the client and resume the call functions as it is Note: The Application returns an Error Message as "object disabled" in both the cases i.e for pop-up message and when the Apllication getting greyed out due to Network failure how can we enhance the script in such a way that for the same error message retured by the application in two different and how to handle them????

2 Answers   Sasken,


What is a class in CSS?

1 Answers  


What is the event handling in vbscript?

0 Answers  


Categories