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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2448


How you can replace string in qtp?

570


Explain the terms test and business component?

547


What is the difference between byref and byval in qtp?

583


How to customize qtp?

608






What are the views available in quicktest professional?

559


What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);

3491


Explain how qtp identifies objects?

564


Explain calling sub procedure.

621


How many types of actions are there in quicktest professional (qtp)?

534


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1602


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1621


What is an object repository?

602


What is quick test pro?

588


How does qtp recognize objects in aut?

580