When i run the code it gives an error 

"The test run cannot continue due to a syntax error.

Expected 'Then'

Line (1): "If file name"tagline2.png".exist Then". "

Set des=description.Create
des("micclass").value="Image"
des("file name").value="tagline2.png"
Set obj=browser("title:=.*").page("title:=.*").ChildObjects(des)
msgbox obj.count
If file name"tagline2.png".exist Then
msgbox "Pass"
else
msgbox "fail"
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.


Reply via email to