Exist method we all know.

*Exists* method is only used for *Dictionary Objects. *

Example -
If dict.*Exists*(“Country”) Then
msg = “Specified key exists.”
Else
msg = “Specified key doesn’t exist.”
End If

Regards,
Gaurav



On Tue, Mar 26, 2013 at 10:48 AM, siva <[email protected]> wrote:

> Guys any luck?...
>
>
> On Tuesday, March 26, 2013, *********************** wrote:
>
>> :-)
>> On 25-Mar-2013 11:57 PM, "siva" <[email protected]> wrote:
>>
>>> Then wat is the difference between exist and exists....
>>>
>>> On Monday, March 25, 2013, sachin mahajan wrote:
>>>
>>> exist(1) means it will wait for 1 second to get the object on UI.
>>>
>>>
>>> same for exist(2) i.e  will wait for 2 seconds....
>>>
>>>
>>>
>>> On Mon, Mar 25, 2013 at 8:54 PM, Siva Prasad <[email protected]
>>> > wrote:
>>>
>>> hi all,
>>>  can you explain,   What is the meaning of exist(2) or exist (1) means,
>>>
>>> On Mon, Mar 25, 2013 at 9:14 AM, ssuummit <[email protected]>wrote:
>>>
>>> Yes Rahul,
>>>
>>> I got the reason why my Reg ex was wrong.
>>>
>>> Thanks for your concern & help!!!
>>>
>>> Sumit
>>>
>>>
>>> On Sunday, 24 March 2013 14:32:17 UTC+5:30, iRahulSingh wrote:
>>>
>>> Hey Sumit,
>>>
>>> hope you know, why your Regex was wrong and why it's correct now.
>>> just thought of asking it as an advice.
>>>
>>> Cheers..
>>>
>>> On Sunday, March 24, 2013 10:18:44 AM UTC+5:30, ssuummit wrote:
>>>
>>> Hello All,
>>>
>>> You are right. My regular expression was wrong. I forgot to put '.'
>>> before '*'
>>>
>>> Thanks for your help!!
>>>
>>> Sumit
>>>
>>> On Saturday, 23 March 2013 22:38:43 UTC+5:30, ssuummit wrote:
>>>
>>> Hello All,
>>>
>>> I am new in QTP. I was executing below code and got the result "browser
>>> not exist".
>>>
>>> systemutil.Run "iexplore.exe","google.com"
>>> Set myb=browser("name:=*")
>>> If myb.Exist(2) Then
>>> print "browser exist"
>>> else
>>>  print "browser not exist"
>>>     End If
>>>
>>> But if I put a value for eg. "Google" for name property then got the
>>> result "browser exist".
>>>
>>> systemutil.Run "iexplore.exe","google.com"
>>> Set myb=browser("name:=Google")
>>> If myb.Exist(2) Then
>>>  print "browser exist"
>>> else
>>> print "browser not exist"
>>>     End If
>>>
>>> I couldn't understand the reason behind this. Why i didn't get result
>>> "browser exist" when i was using '*' for name property value.
>>>
>>> Could anyone let me know the reason behind this??
>>>
>>> Thanks for your help!!!
>>>
>>> Sumit
>>>
>>>  --
>>> --
>>> 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/o<https://groups.google.com/groups/opt_out>
>>>
>>>
>>>
>>> --
>>> with regards,
>>>                   siva
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Googl For
>>> more options, visit 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
>> [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.
>>
>>
>>
>
>
> --
> Sent from My IPhone.
>
>  --
> --
> 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