Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Exist method doesn’t work if object doesn’t displa

Exist method doesn’t work if object doesn’t displa

Home Forums Ask Expert Exist method doesn’t work if object doesn’t displa

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32878
    Adil Kamal
    Participant

      I have a situation where screen doesn’t display certain grids in some situation. what should i do if the cursor stays there for a long time where i have a Object(“Name”).exist condition. And how i can write in the result that object doesn’t exist?

      #32879
      Sasha ZAP
      Moderator

        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

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.