@Nikhil - We dont have to use ordinal identifiers and systemutil with title
name is not used when 2 or more pages with same title is opened.

@Venkat - I dont have to close all the browsers. i just have to close the
2nd browser.Here suppose 2 browsers are having google.com page and 3rd
browser is Gmail.com

@Vish - SystemUtil.CloseDescendentProcesses is used to close all the
browser opened by QTP.. But here we are particular with respect to browser.

Some changes I make in Venkat codes is as follows:-

Set odesc= description.Create
odesc("micclass").value="Browser"

Set total=Desktop.ChildObjects(odesc)
totalcount=total.count

 msgbox totalcount

 total(1).close


Here are tried closing 2 browser.

Regards,
Gaurav







On Sat, Mar 16, 2013 at 10:48 AM, iRahulSingh <[email protected]>wrote:

> Gaurav,
>
> There are multiple ways to do it ...depends what suits you best :
>
> 1. as pointed out in later posts, have the child objects of type browser
> in desktop and it will return the count. you can choose the one to close
> 2. if it's not an independent window but sort of child window ( like
> dialog boxes ) then you can use properties which are used to identify
> dialog box ( isChildWindow, isOwned )
>
> let me know if i'm missing anything here.
>
> cheers ..
>
> On Thursday, February 14, 2013 9:22:17 PM UTC+5:30, Gaurav_Accenture wrote:
>
>> Hi Rohit,
>>
>> Please read my first mail. We do not have to use ordinal identifier here..
>>
>> Regards,
>> Gaurav
>>
>> On Thu, Feb 14, 2013 at 7:52 PM, Rohit Guru <[email protected]> wrote:
>>
>>> use creation time in that case.
>>>
>>>
>>> On Thu, Feb 14, 2013 at 7:48 PM, gaurav sharma <[email protected]>wrote:
>>>
>>>> Hi Ravi,
>>>>
>>>> I used Browser("name:=Google").Close  It is working fine..
>>>>
>>>> But what if I have more than 1 browser with same Google page then this
>>>> code will not work..Any suggestion?
>>>>
>>>> Regards,
>>>> Gaurav
>>>>
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 7:40 PM, gaurav sharma <[email protected]>wrote:
>>>>
>>>>> Hi Lavanya,
>>>>>
>>>>> Yes we can close the browser by its title.
>>>>>
>>>>> systemutil.**CloseProcessByWndTitle("Yahoo! India - Microsoft
>>>>> Internet Explorer")
>>>>>
>>>>> I tried using URL "yahoo.com".
>>>>>
>>>>> It works fine.
>>>>>
>>>>> Regards,
>>>>> Gaurav
>>>>>
>>>>>
>>>>> On Thu, Feb 14, 2013 at 3:33 PM, Ravi Sid <[email protected]> wrote:
>>>>>
>>>>>> Hi,
>>>>>> Use the normal method :
>>>>>> Browser("name:=Google Search").Close will close specified browser
>>>>>>
>>>>>> Thanks,
>>>>>> Ravi
>>>>>>
>>>>>> On Thu, Feb 14, 2013 at 10:59 AM, Lavanya Ch <[email protected]>
>>>>>> wrote:
>>>>>> > Hi,
>>>>>> > iam new to QTP, i just want to know can we use SystemUtil methods
>>>>>> here to
>>>>>> > close the browser by its title ie., SystemUtil.**
>>>>>> closeprocessbywndtitle
>>>>>> > please let me know the answer for the question.
>>>>>> >
>>>>>> >
>>>>>> > On Wednesday, February 13, 2013 11:32:33 PM UTC+5:30,
>>>>>> Gaurav_Accenture
>>>>>> > wrote:
>>>>>> >>
>>>>>> >> Hi Ganesh,
>>>>>> >>
>>>>>> >> 'hasmenubar' property do not holds numeric value,instead it holds
>>>>>> boolean
>>>>>> >> values.
>>>>>> >> Micclass is not possible in this scenario as we are using more
>>>>>> than 1
>>>>>> >> browser.
>>>>>> >>
>>>>>> >> Regards,
>>>>>> >> Gaurav
>>>>>> >>
>>>>>> >> On Wed, Feb 13, 2013 at 10:30 PM, Ganesh muralidharan <
>>>>>> [email protected]>
>>>>>> >> wrote:
>>>>>> >>>
>>>>>> >>> Have your tried with Browser("hasmenubar:=0").Page(**
>>>>>> "micclass:=Page")?
>>>>>> >>>
>>>>>> >>>
>>>>>> >>> On Wed, Feb 13, 2013 at 10:46 AM, gaurav sharma <
>>>>>> [email protected]>
>>>>>> >>> wrote:
>>>>>> >>>>
>>>>>> >>>> Hi,
>>>>>> >>>>
>>>>>> >>>> If I want to close child browser without using ordinal
>>>>>> >>>> identifier(creation time and index no.) and hwnd property then
>>>>>> how will I
>>>>>> >>>> close it?
>>>>>> >>>>
>>>>>> >>>> --
>>>>>> >>>> GAURAV SHARMA
>>>>>> >>>> S/W ENGG.
>>>>>> >>>> ACCENTURE
>>>>>> >>>>
>>>>>> >>>> --
>>>>>> >>>> --
>>>>>> >>>> You received this message because you are subscribed to the
>>>>>> Google
>>>>>> >>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> >>>> group.
>>>>>> >>>> To post to this group, send email to [email protected]
>>>>>> >>>>
>>>>>> >>>> To unsubscribe from this group, send email to
>>>>>> >>>> MercuryQTP+...@googlegroups.**com
>>>>>> >>>>
>>>>>> >>>> For more options, visit this group at
>>>>>> >>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>>> >>>>
>>>>>> >>>> ---
>>>>>> >>>> You received this message because you are subscribed to the
>>>>>> Google
>>>>>> >>>> Groups "QTP - HP Quick Test Professional - Automated Software
>>>>>> Testing"
>>>>>> >>>> group.
>>>>>> >>>> To unsubscribe from this group and stop receiving emails from
>>>>>> it, send
>>>>>> >>>> an email to mercuryqtp+...@googlegroups.**com.
>>>>>> >>>>
>>>>>> >>>> For more options, visit https://groups.google.com/**
>>>>>> groups/opt_out <https://groups.google.com/groups/opt_out>.
>>>>>> >>>>
>>>>>> >>>>
>>>>>> >>>
>>>>>> >>>
>>>>>> >>>
>>>>>> >>>
>>>>>> >>> --
>>>>>> >>> Regards,
>>>>>> >>>
>>>>>> >>>
>>>>>> >>> Ganesh Muralidharan
>>>>>> >>> 'God Never Forgets'
>>>>>> >>>
>>>>>> >>> --
>>>>>> >>> --
>>>>>> >>> You received this message because you are subscribed to the Google
>>>>>> >>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> >>> group.
>>>>>> >>> To post to this group, send email to [email protected]
>>>>>> >>>
>>>>>> >>> To unsubscribe from this group, send email to
>>>>>> >>> MercuryQTP+...@googlegroups.**com
>>>>>> >>>
>>>>>> >>> For more options, visit this group at
>>>>>> >>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>>> >>>
>>>>>> >>> ---
>>>>>> >>> You received this message because you are subscribed to the
>>>>>> Google Groups
>>>>>> >>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> group.
>>>>>> >>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an
>>>>>> >>> email to mercuryqtp+...@googlegroups.**com.
>>>>>> >>>
>>>>>> >>> For more options, visit https://groups.google.com/**
>>>>>> groups/opt_out <https://groups.google.com/groups/opt_out>.
>>>>>> >>>
>>>>>> >>>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> GAURAV SHARMA
>>>>>> >> S/W ENGG.
>>>>>> >> ACCENTURE
>>>>>> >
>>>>>> > --
>>>>>> > --
>>>>>> > You received this message because you are subscribed to the Google
>>>>>> > "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> > group.
>>>>>> > To post to this group, send email to [email protected]
>>>>>> > To unsubscribe from this group, send email to
>>>>>> > MercuryQTP+...@**googlegroups.com
>>>>>> > For more options, visit this group at
>>>>>> > http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>>> >
>>>>>> > ---
>>>>>> > You received this message because you are subscribed to the Google
>>>>>> Groups
>>>>>> > "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> group.
>>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an
>>>>>> > email to mercuryqtp+...@**googlegroups.com.
>>>>>> > For more options, visit 
>>>>>> > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>>> .
>>>>>> >
>>>>>> >
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> group.
>>>>>> To post to this group, send email to [email protected]
>>>>>> To unsubscribe from this group, send email to
>>>>>> MercuryQTP+...@**googlegroups.com
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>>>
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to mercuryqtp+...@**googlegroups.com.
>>>>>> For more options, visit 
>>>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>>> .
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> GAURAV SHARMA
>>>>> S/W ENGG.
>>>>> ACCENTURE
>>>>>
>>>>
>>>>
>>>>
>>>>  --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> MercuryQTP+...@**googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to mercuryqtp+...@**googlegroups.com.
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>>
>>>>
>>>
>>>  --
>>> --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> MercuryQTP+...@**googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/MercuryQTP?hl=en<http://groups.google.com/group/MercuryQTP?hl=en>
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to mercuryqtp+...@**googlegroups.com.
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> GAURAV SHARMA
>> S/W ENGG.
>> ACCENTURE
>>
>  --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
GAURAV SHARMA
S/W ENGG.
ACCENTURE

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to