How to validate the object count?

How to validate the object count?

Home Forums Ask Expert How to validate the object count?

  • This topic has 1 reply, 2 voices, and was last updated 6 years ago by Sasha ZAP.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32282
    Sasha ZAP
    Moderator

      Hello tahashadab,

      You can do the following:
      1. Create the expected objects in the scanned GUI where the real objects suppose to appear during runtime (Although they will not appear when you’ll scan the GUI still you can set to these objects their expected properties, such as the “Text” property).
      2. During runtime check if the above specified objects appear using the Exist method, and if yes add 1 to a counter.

      This way you will be able to count if certain objects appeared during runtime or not.

      Thanks,
      ZAPTEST Team

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.

    Virtual Expert

    ZAPTEST

    ZAPTEST Logo