Hello Adil,
If I understand you correctly this is an example of a condition with the Exist method:
If Application(“Application Name”).View(“View Name”).Object(“Name”).Exist(1000, False) Then
Application(“Application Name”).CustomReport True, “Grid Success”, “The grid appeared successfully.”, True
Else
Application(“Application Name”).CustomReport False, “Grid Error”, “The grid did not appear.”, True
End If
Also you can check our “How-To” page which contains documentation of all ZAPTEST methods and elementsat:
https://www.zaptest.com/user-zone/product-training
In this page you can find the Exist method’s explanation which ay help you as well:
https://www.zaptest.com/user-zone/product-training/zaptest/methods/method-exist
Hope this what you need.
Thanks,
ZAPTEST Team