How can we close all webbrowsers which are opened in out
desctop?
Answers were Sorted based on User's Feedback
Answer / venu
The following code can be used in order to close all the IE
browsers:
SystemUtil.CloseProcessByName "IEXPLORE.EXE"
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / meenakshisundharam
If browser(xxxx).Exist then
browser(xxxx).close
End if
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / syam
While Browser("CreationTime:=0").Exist
Browser("CreationTime:=0").Close
Wend
QTP Tip1: The first browser that opens receives the
value "CreationTime" = 0, the second browser
receives "CreationTime" = 1, and so on...
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / d.selvakumar
SystemUtil.CloseProcessByName "iexplore.exe"
pls use small letters
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / chandrashekar reddy
there are 2 ways to close the all browsers in qtp
1) we can use while..... wend 2) we can use
description.create method
1) while Browser("index:=0").exist (1)
browser(index:=0).close
wend
2) set ab=description.create
ab("micclass").value="Browser"
set obj=Desktop.childobjects(ab)
b=obj.count
msgbox b
for i= 0 to b-1
names=obj(i).getroproperty("name")
msgbox name
obj(i).close
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / joseph
Tested in tool -
Answer 1 is right
Answer 3 is right
Answer 5(1) - Update (browser(index:=0).close) to browser("index:=0").close
Answer 5(2) - Need to include 'Next' for 'For' loop
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram shankar
visit below URL, you can get qtp browsers scripts
http://www.gcreddy.com/2010/01/qtp-web-testing-scripts.html
| Is This Answer Correct ? | 0 Yes | 2 No |
how to record/identify the webedit box/object which have drop down list and its changing simultaneously in qtp..
1 Answers Synchronoss Technologies,
How software automation specialist enter steps in the Expert View?
How To clear the AutoComplete?
In QTP, If you have list of checkboxes, how can i select a particular checkbox and delete if the checkboxes are changing dynamically?
How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?
How will you load few objects in Active Screen?
what is clean sweep?
can u write one user defined function for webedit class.
Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code
What is output value?
how your doing reporting in your script?
what is the difference between link and hyperlink?