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...


using descriptive programming how to close all opend browsers?

Answers were Sorted based on User's Feedback



using descriptive programming how to close all opend browsers?..

Answer / ravi

Set b=Description.Create
b("micclass").value="Browser"
Set obj=Desktop.ChildObjects(b)
For i=0 to obj.count-1
c=obj(i).GetROProperty("title")
msgbox " Closing.. " & c
obj(i).Close
Next

Is This Answer Correct ?    5 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / amarendra kothuru

Do While(True)
If Not Browser("index:=0").Exist(0) Then
Exit Do
End If
Browser("index:=0").Close
Loop

Is This Answer Correct ?    3 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / sagar jadhav

Guys instead of doing all the circus mentioned in all above
answers... below statement will close all IE brosers in one
go......

SystemUtil.CloseProcessByName "iexplore.exe"

That's it!

Is This Answer Correct ?    1 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / balaji

Hi you can use thise code

For i= 0 to 5
browser("name:=Google").Close


Next

Is This Answer Correct ?    0 Yes 0 No

using descriptive programming how to close all opend browsers?..

Answer / naveen

while Browser("Creation Time:=0").Exist
Browser("Creation Time:=0").Close
Wend

Is This Answer Correct ?    1 Yes 1 No

using descriptive programming how to close all opend browsers?..

Answer / moin

Public function closeBrowser()
On error resume next
Ipval=Environment("Ipval")
err.clear
Browser(Ipval).Close
If err.description<>"" Then
Reporter.ReportEvent micFail,"Wait",err.description
End If
End Function

Is This Answer Correct ?    0 Yes 1 No

using descriptive programming how to close all opend browsers?..

Answer / shobha

asdfdsfdf

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

How would you directly trigger javascript in a test?

0 Answers   eBay,


In real time ,How to run all scripts in QTP? i,e in projects

3 Answers  


any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Browser ("Browsername").Page("Pagename").Weblist ("weblistname"),"items count")) msgbox intFieldItemsCnt

1 Answers  


we have 10 actions in out test how can we convert 9th action is main action ? how ?

5 Answers  


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

0 Answers  


I am verifying the actual vs the input value to make sure that they been entered correctly. In the Global Sheet I have a column called Customer with the multiple names in each row and now I am trying to capture the value during runtime under the column name Customer_in_Apps. Somewhat it works but during runtime the values are being stored in each column vs each row i.e., Customer_in_Apps, Customer_in_Apps1. Automatically it add columns instead of rows. row=datatable.getsheet("Global").GetRowCount for x=1 to row datatable.getsheet("Global").SetCurrentRow(x) Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Val1=Datatable.Value("Customer",dtGlobalSheet) Val2 = Datatable.GlobalSheet.AddParameter("Customer_in _Apps",runtimevalue) If (trim(Val2)=trim(Val1)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Val1&vbcrlf& "Customer Value: " &_Val2 else Reporter.ReportEvent micFail, "Customer validation unsuccessful", "Actual Value: " &Val1&vbcrlf& "Customer Value: " &Val2 End If Next

3 Answers  


what is the difference between an Action and a function in real time

4 Answers  


There are 3 types of frame works in QTP 1. Linear frame work 2. Modular frame work 3. Key word driven frame work. Can any body explain the above 3 frame work models. y2k_ram2000@yahoo.com

6 Answers   Fidelity, GDS, IBM, TCS, Wipro,


What is the registration process and examination fees?

0 Answers  


several browsers opened. write QTP script to close all browsers except gmail.

1 Answers   Thomson Reuters,


What is the difference between run time object and test object in QTP?

0 Answers  


Is it possible to test Flat file using QTP? I have two file- first file is Input file and second file is output file. Input file has Format like first 2 field is record type, next 10 field is Description. Output file also has format. I want to check this file format using QTP. Is it possible?? please reply with example.

2 Answers   Wipro,


Categories