If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.
Answer Posted / m.ganesh
Set odesc=description.Create
odesc("micclass").value="Browser"
Set a=Desktop.ChildObjects(odesc)
print a.count
For i = 0 To a.count-1
browsername= a(i).getroproperty("name")
print browsername
Next
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is the quicktest professional testing process?
What is RTM (require ment tracebulity marix) fromate?
Explain about the quicktest professional (qtp) automation object model?
Suppose I want fail that check point? How can you do that?
what is the mail use of frame work(with detail). architecture for keyword driven frame work
Can we write winrunner language i.e TSL in QTP tool?
What is the standard timing delay for web based application in qtp?
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
What is business process testing(bpt) in qtp?
distinguish between old version and new version QTP features.
How is UFT 11.5 version different from UFT 12.0?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
How to test the login page in different ways in automation testing and i need code?
Please guide me release notes of Automation once scripts are completed