Suppose there are 10 browsers opened on desktop. I want to
close all browsers except one browser in QTP. Can any one
give the code for this?
Answer Posted / sharath
you can use descriptives programming concepts.
"CreationTime" is a QTP browser property, which indicates
the order in which browsers were opened.
To close 1st browser --> Browser("CreationTime:=0").Close
2nd browser --> Browser("CreationTime:=1").Close.
you can use a loop to close other 9 browsers..
Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Can you list some technologies that support qtp?
How to record application running on the Virtual machine?
Explain how qtp identifies objects?
banking domain description for software tester for interview
what is meant by source control?
How you can decide which type of object repository you have to use?
In qtp is it possible to check broken links of a page?
How to create runtime property for an object?
What is checkpoints for quicktest professional?
What are the views available in quicktest professional (qtp)?
How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
How often were they executed?
If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?
In qtp, how you can remove the spaces from string?
How do know the number of browsers opened?