Prepare for your Next Interview
This is a discussion on I have 2 browsers open having the same title and I want to close the second browser? within the QTP forums, part of the Software Testing category; I have 2 browsers open presently having the same title and I want to close the second or first browser using QTP Tool? Thanks in advance....
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
I have 2 browsers open having the same title and I want to close the second browser?
I have 2 browsers open presently having the same title and I want to close the second or first browser using QTP Tool?
Thanks in advance. |
| Sponsored Links |
|
|||
|
Re: I have 2 browsers open having the same title and I want to close the second brows
Why don't you select the option of"close the browser when test close".
Or record the same action in QTP recording, QTP will do it for you.
__________________
Brijesh Jain brijesh.tester@yahoo.co.in http://softwaretestingexpertise.blogspot.com |
|
|||
|
Re: I have 2 browsers open having the same title and I want to close the second brows
if Browser("index:=0").Exist(2) then
a = Browser("index:=0").close 'It will close 2nd browser end if |
|
|||
|
Re: I have 2 browsers open having the same title and I want to close the second brows
Rajaputra,
I would like to kno how does this work... ?
__________________
Lack of WILL POWER has caused more failure than lack of INTELLIGENCE or ABILITY. -sutnarcha- |
|
|||
|
simple
browser("index:=0").exist means to confirm that whether the particular browser is already opened or not. So that we can close. Here index =
|
|
|||
|
Re: I have 2 browsers open having the same title and I want to close the second brows
nice Solution,
This is the only way to distinguish between two browsers which has the same name still sometime its really dificult to distinguish and it closes the wrong wondow .M still working on this to get a robust solution if anybody has ne suggestion then they can help me out. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web Browsers | norman | Windows | 2 | 10-14-2008 12:33 PM |
| Retrieveing the title of the currently active window | Geek_Guest | QTP | 6 | 06-28-2008 02:21 AM |
| Why we have to close connection, statement, prepared statement | Geek_Guest | Java | 8 | 02-27-2008 07:09 AM |
| customizing title bar... | psuresh1982 | Web Design | 1 | 07-20-2007 06:39 AM |
| This program uses the artist name and title of the composition from ID3 tag for compa | JobHelper | Geeks Lounge | 0 | 06-27-2007 10:40 AM |