Go through all parent object before looking for child objects so .. what
you get after exectuing this
msgbox Browser("name:= Welcome to Bugzilla").exists
msgbox Browser("name:= Welcome to Bugzilla").Page("title:=Welcome to
Bugzilla").exits
msgbox Browser("name:= Welcome to Bugzilla").Page("title:=Welcome to
Bugzilla").Link("test:=Log In","visible := true").Exist
if there is a issue in parent object your child object will not be
recognized.
Make sure there is no white space with you are giving a value
use index property to identify object like Browser("name:= Welcome to
Bugzilla").Page("title:=Welcome to Bugzilla").Link("test:=Log
In","index:=0") (you may have different index)
Good luck..
On Saturday, July 20, 2013 5:01:47 AM UTC-4, Pankaj d wrote:
>
> If Browser("name:= Welcome to Bugzilla").Page("title:=Welcome to
> Bugzilla").Link("test:=Log In","visible := true").Exist(10) then
> Call Fn_ParameterizeTest
> else
> Call fn_Logout
> End If
>
>
> Whats wrong with this code? When always I try this code it goes to false
> condition if though condition is true.
>
--
--
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.