how to click on object?
(with out knowing the object details)
for ex: in a webpage one link is available.i want to click
that link by using one menthod through qtp?

Answers were Sorted based on User's Feedback



how to click on object? (with out knowing the object details) for ex: in a webpage one link is ava..

Answer / ashok kumar

by using static DP:

Browser("micclass:=Browser").Page("micclass:=page").Link("micclass:=Link").click

by using dynamic DP:

Set objlink = Description.Create()
objlink("micclass").value = "Link"
Set link1 =
Browser("micclass:=Browser").Page("micclass:=Page").ChildObjects(objlink)
msgbox link1.count

Is This Answer Correct ?    6 Yes 4 No

how to click on object? (with out knowing the object details) for ex: in a webpage one link is ava..

Answer / vikrant

To identify any object you should know the properties of
that particular object.QTP has provided object spy tool to
identify the object.
By clicking on that icon it will allow you to view the
properties of that object then you need unique property
values of that object.

Is This Answer Correct ?    1 Yes 2 No

how to click on object? (with out knowing the object details) for ex: in a webpage one link is ava..

Answer / uday

Use the index of the link.

Say if it is 10th link in the web page, use index=9.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Diff between WEB APPLICATION AND CLIENT-SERVER APPLICATION?

2 Answers  


How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me

5 Answers   Livetek, Virtusa,


Hi all, can anyone tell me the challenges u faced while using qtp?

2 Answers  


what is keyword driven testing in qtp?n how is it useful?

0 Answers  


Explain types of exception handling and script for that?

2 Answers  






can any one tell me How exactly data drivent testing is done in.explain with any example and the exact steps to fallow?

2 Answers  


w is fragmentation and paging

1 Answers   MBT,


What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)

1 Answers   Wipro,


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

0 Answers  


Explain about business process component? types and usage?

0 Answers  


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..

2 Answers  


What are the benefits of qtp?

0 Answers  


Categories