IF there are seven browsers with same name open. I want to
close one particular browser thru QTP. how can i do this?

Answers were Sorted based on User's Feedback



IF there are seven browsers with same name open. I want to close one particular browser thru QTP. ..

Answer / pavani prasad

sorry venkatesh,

i am agrre with u. But one small correction is the creation
time is start with 0.
if u want close first browser u can give no 0,
if u want close 2nd browser u can give no 1 ,
Ex: for closing seventh browser,

browser("CreationTime:=6").close

Is This Answer Correct ?    17 Yes 0 No

IF there are seven browsers with same name open. I want to close one particular browser thru QTP. ..

Answer / venkatesh

By Using Creation Time we will close particular browser. if
u open 7 browsers with same name but creation times r
different.

Ex:: browser("CreationTime:=7").close. if u want close 1
browser u can give no 1 ,

Is This Answer Correct ?    18 Yes 6 No

IF there are seven browsers with same name open. I want to close one particular browser thru QTP. ..

Answer / deven

while browser ("CREATIONTIME:=7").exist(3) then
browser("creationtime:=7").open
wend

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.

2 Answers  


hi, Can any body tell me whats the difference between the QTP and the Rational Robat ad the Silk Test and LOad Runner and are they used in any Company On the Major scale bcas I finnf Many comapny Using the Manual Testing Only Hence Askin the Question Hope I will get the Assitence .

1 Answers   First Europa,


recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail

3 Answers   Infosys,


Which Databases supports for QTP?

3 Answers   CTS,


What are the different recording modes and how do they work?

0 Answers  






how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

0 Answers  


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

0 Answers  


what is mean by output parameters? I need full description with example. tell me any one please

1 Answers  


w is descriptive programming

2 Answers   TCS,


What is the difference between link and hyperlink?

1 Answers  


Is there any option in QTP to add Java add-in after instaling the QTP?

3 Answers   IBM,


Use of environment variables?

4 Answers  


Categories