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

4. How u will open the build automatically in QTP except using Systemutil.run command

4 Answers  


How to execute a winrunner script in quicktest professional (qtp)?

0 Answers  


Can we call a parameter from an action to other action?

4 Answers  


if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail

2 Answers   Quinnox,


wat are views in qtp explain

3 Answers   IGT,






what's the difference in between function and sub and give some code as well

3 Answers   Patni,


How to Import the data from MS-Access in QTP?

1 Answers  


How you are maintaining shared object repository in your team or your project?help me plz

1 Answers   CTS,


Consider a scenario where there are two action sheets say action 1 and action 2. Can Action 1 take values from action 2 data sheet or vice versa. If so, how?

6 Answers   Oracle, TCS,


Which environments are supported by hp qtp?

0 Answers  


A web table is having 3 columns(name, salary and checkbox) in qtp How to select a checkbox based on the highest salary of an employee in a webtable.

1 Answers  


How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?

1 Answers  


Categories