Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

how to insert QTP to display errors and other description in the test results instead of halting execution by throwing error in the mid of executin due to an error (for object not found)?

1 Answers   Ordain Solutions,


can we run the scripts of qtp 8.2 in the qtp7.0?

1 Answers  


Error handling

3 Answers   Wipro,


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

0 Answers   TCS,


Ehat is the descriptive programing in QTP?

4 Answers  


how do u prepare Test Environment ?

1 Answers  


Explain hybrid framework with advantages and disadvantages?

0 Answers  


What is file database?

0 Answers   Syntel,


we have one text box and one list box(list box appear in same page or another page) what ever the text enter in text box that must be displyed in list box as first one. for example if we enter 10 in text box that is the 1st item in list box . after that we enter 11 then 11 is the 1st item and 10 is 2nd item. the maximum limit of list box is 10 items. if we enter 11th item the 10th item is deleted and llth one is add as 1st one and 9th one goes to 10th position

3 Answers   Covansys,


Using Regular expression method some particular value is not present in given value. HOow do use regular expression? Forexample password all number,character ,special character are accepted but (_',)underscore,comma are not used. How do write regular expression.

1 Answers  


We have a text file which contains 1 to 100 numeric values sequentially like 1 2 . . 100 Now we have to count them and transfer to XML file by writing a code in qtp.

1 Answers   Cap Gemini,


Categories