You can not give directly as if filename then
It should be with in for loop like this
For I=0 to obj.count-1
Namefile=Obj(I).getroproperty("file name")
If Namefile= <exp name> Then
Exit for
End lf
Next

Thanks,
Venkat Reddy Bandaru
[email protected]
+ 91 9884524606
On 14-Aug-2013 10:47 AM, <[email protected]> wrote:

> I am running this below description. it errors out expect "then"
> i do have then but i guess because of the file name it is giving the error.
> Then image doesn't have any unique value thats why i dont have any option
> to pick any other object.  Can you please help
>
> Set descImage = Description.Create
> descImage("html tag").value = "IMG"
> descImage("file name").value = "01_perspective_img_1.jpg"
> Set obj=browser("title:=.*").page("title:=.*").ChildObjects(descImage)
> msgbox obj.Count
> If file name("01_perspective_img_1.jp").Exist then
> Reporter.ReportEvent micPass, "Status Message", "Image is displayed"
> Else
> Reporter.ReportEvent micFail, "Status Message", "Image is not displayed"
> End if
>
> --
> --
> 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.


Reply via email to