You have to .* instead of only *
On 23-Mar-2013 11:27 PM, "ssuummit" <[email protected]> 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/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.