How can we close all webbrowsers which are opened in out
desctop?
Answer Posted / 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 |
Post New Answer View All Answers
What is the process of synchronizing qtp and aut?
hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
How can you write the scripts that operate on different objects depending on run-time information?
How does qtp recognize objects in aut?
What are the types of object repositories? Which one is you are using?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What is smart identification in QTP?
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
how to download mercury qtp9.2 ny internet ?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
What are the methods used in UFT to handle exceptions or run-time errors?