In web page there is five OK buttons available, while
recording i click on 3rd OK button, How QTP identify the 3rd
OK button while running script? Is qtp identify 3rd ok button?

Answers were Sorted based on User's Feedback



In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / kiran

QTP will recognise the ok button using index property

Is This Answer Correct ?    20 Yes 0 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / raj

QTP add the OK button in OR and set its Property as

Descrion Property:
text = OK

Ordinal Identifier:

index = 2



QTP only uses Ordinal property i.e like Inedex property only
when all the description properties are same.

Is This Answer Correct ?    7 Yes 1 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / xyz

According to the object properties.

Is This Answer Correct ?    1 Yes 0 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / ashutosh

I said as u say..but the person said, u know developer just copy & paste the code. dev never write code 5 times for same buttons. which object property???

Is This Answer Correct ?    1 Yes 0 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / deepak kumar

QTP identify the 3rd button Using Object Property.We can see Object Property using Object Spy .Each object in QTP consist number of properties.

Is This Answer Correct ?    6 Yes 5 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / tvs ramakrishna chowdary

This is again TVS Ramakrishna Chowdary...ordinal dentifier
property(Creation Time)will be available to only Browser
object....not for other objects.....so but by mistache i
posted creaton time for ok button...


Sorry for posting wrong answer...

U use ordinal identifiers either index nos or location...

both are starts from 0,1,2.......

Is This Answer Correct ?    1 Yes 0 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / tvs ramakrishna chowdary

ur having answer in ur question only..ur telling that 3rd
ok button this 3rd is nuthing but index of that button..
but here small change index nos atart form 0,1,2.....and so
on

ex:browse(browser).page(page).webbutton
("name:=ok",index:=2").click

than it understoods that third ok button


or by Creation time:
----------------------------

ex:browser(browser).page(page).webbutton
("name:=ok","creationtime:=2")

than our qtp understoods that 3rd ok button

Is This Answer Correct ?    2 Yes 2 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / sarojini

use index proeprty to close the 3rd ok button.
use for loop condition like
For i= 0 to 10
okbuttonvalue=Broswer("").page("").button
("index:="&i).getroprepoerty("value")
Next
by using this for loop condition you can get index value
from above logic take index value put in the line close the
third button

Is This Answer Correct ?    0 Yes 0 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / vikrant

Hi
Don't think in developers way. while selecting a button u
need not know the button functionality. u can simply
identify the properties by object spy.

Is This Answer Correct ?    0 Yes 0 No

In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP ..

Answer / vijayalaxmi

By using the index identification and the oridinal
identification...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

If there are 100 checkboes in a page then how can we select all chexkboxes at once through descriptive programing in QTP using vb script. Please send the answers...

5 Answers   HCL,


Explain the difference between check point and output value?

0 Answers  


Can we do qtp testing without creating objects in Dbject repository? can we do it completely writing code i.e in expert view only. Are there any books for this?

7 Answers   Accenture,


what is the use of VIRTUAL OBJECTS? explain ?

10 Answers   ABC Infotech, IBM, TCS,


How will u integrate oracel with QTP?

2 Answers   Microsoft,






How the exception handling can be done using QTP

6 Answers  


Maximum synchronizing time out in QTP

3 Answers   Kanbay,


suppose u have two send buttons(same width,height,font) on an application write a descriptive programming

1 Answers  


How will u test content of an web application with out using chechpoints in QTP 9.2?

3 Answers   CTS,


How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the submit button it opens a screen. I want that screen name.How can i get that screen name I dont have any property regarding that screen. If suppose we cliked on the screen , Then QTP captures the screen properties then i can get the screen name by using GETROPROPERTY But i want the screen name without clicking the screen. ("I am using the "settoproperty" for Second screen by using fist screen properties") Please tell me anyone

3 Answers   Livetek,


what is vmodel?advantages and disadvantages of vmodel?

3 Answers   AZTEC, scintel,


What is the extension of script and object repository files?

4 Answers   Crea,


Categories