Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

0 Answers   TCS,


How will you test a keyboard?

0 Answers  


How can the functions inside DLL be called from QTP? i mean How can i use those functions(Inside DLL) in QTP

1 Answers  


Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bitmap/image or any other checkpoint. Like if checkpoint passes then if or Else

2 Answers  


BEst INstitute for QTP & SELENIUM

1 Answers  


How to create an instance in QTP?

1 Answers   Collabera,


suppose u hav a dialog or window which contains 10 buttons with same name & value. now how to check each button? i.e. how qtp indetifies these objects separately?

2 Answers  


How can we translate the steps between the Keyword and Expert Views?

1 Answers  


How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.

3 Answers   Virtusa,


how to evalute defects in QTP script?

0 Answers  


LINUX environment supports QTP or not? LINUX environment supports QC or not?

4 Answers  


how to get the object property

4 Answers   Covansys,


Categories