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

Hi Friends, Iam Beginner in QTP and i want to Try the software QTP. I checked the mercury site for QTP Trial version and i found QTP 9.0. The thing is that it supports windows 2000,Xp but not windows 98.And Iam using Windows 98 onlu and it's not possible for me to upgrade to windows 2000. Pls. guide me how to get the trial version of QTP which supports windows 98 Operating System The version may be 6.5 is ok for me.Thanks in Advance

2 Answers  


1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?

1 Answers   L&T,


What is keyword driven framework, what is "key" in It.

2 Answers   IBM,


CAN ANY ONE PLEASE EXPLAIN DIFFERENT TYPE OF FRAMEWORKS USED IN QTP?EXPLAIN EACH OF THEM?..POST TO VANILKUMAR_1981@YAHOO.CO.IN

2 Answers  


hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output INDIA ,using simple string how will u do? can any one tell really need full..

4 Answers   Mind Tree, Tech Mahindra,






Hi, every one aim new to automation testing(QTP),aim looking for software versions any. If any one can HELP me that will be great. Thank u.(9620427211,Bangalore)

0 Answers   ME,


In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i have parametrize the Person name and company Name and i have enter one person name and one company name in the excel sheet now we import the sheet and the script is passed i want to ask one thing can we add more than one person name and more than one company name in the excel sheet suppose firstly we create person name "ADDy" and company nmae.'Wipro" and we set the current row in the script for this data and now we want run the script another set of data so how we can run the script with another set of data

2 Answers  


diff between global variables and environment variables in qtp?

1 Answers   FIS,


1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?

0 Answers   HP,


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

0 Answers   Tech Mahindra,


How to Test the mainframe application?(tell me few basic things)

3 Answers  


Categories