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

Hello Everybody, Please tell me can we create Test Plan in QTP? This I am asking irrespective to integrating with Test Director.I mean is there any option to create Test Plan in QTP itself. Thanks, Gaytri

4 Answers  


What is 'sleep' in sync point?

0 Answers  


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

0 Answers   IBM,


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

0 Answers   Covansys,


in my application,validation message has in japanise language.how to validate this message is appears properly or not

0 Answers  






How to capture data from images in QTP and produce them in Excel sheet ?

4 Answers   iFlex, QA InfoTech,


QTP9.1 does not support to text checkpoint in Windows application? Is this correct? If this is correct, what is alternative for Text checkpoint?

2 Answers  


How can you exit from an action?

0 Answers  


is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE

44 Answers   InterGraph,


how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


How to switch between browser tabs? )moving from one tab to another tab)

1 Answers   CTS,


Under what conditions would you recommend QTP for future projects?

1 Answers  


Categories