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

What is the differnce between action & script

1 Answers  


Can we use index on view?

0 Answers   Wipro,


Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?

2 Answers  


I m new to QTP? Is it necessary to know VB for learning QTP for Automation? Can I understand QTP excellently Without practical automation?

3 Answers  


Can i run the qtp, without OBJECT REPOSTIRY...

8 Answers  






how do you run scripts in QTP?please anyone can answer my questions

4 Answers   Ordain Solutions,


I have test cases in excel sheet but i am using quality center.How can i copy the testcases from excel sheet to quality center?explain this process.

3 Answers   TCS,


I have a tool bar where 5 different buttons are placed, but these buttons are not traceable hence i have created a virtual object on save button of this toolbar. Now pls tell me how to use this virtual object while write script.

0 Answers   IBM,


write a qtp code to count the number of child objects in login page and highlight it

2 Answers  


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

0 Answers  


What is descriptive Programming in qtp.

5 Answers  


i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me

2 Answers  


Categories