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

wht type of User defined functions or Java Releated functions do we write in VB scripting

0 Answers   Wipro,


What is object & properties (in QTP)

5 Answers   Ordain Solutions,


Explain how to use QTP to check broken links on a page?

0 Answers  


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

0 Answers  


How to find given string is palindrome or not without using strreverse() function?

2 Answers  






write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result

3 Answers   Mind Q Systems,


Explain different recording modes?

0 Answers  


How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software

3 Answers  


How to retrieve the property of an object?

1 Answers  


hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


What are the different types of action?

0 Answers  


What is difference between shared and local object repository?

0 Answers  


Categories