Server Response

Server Response

Home Forums Ask Expert Server Response

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31367
    Sasha ZAP
    Moderator

      Hello aqu,

      If you want to continue your test the moment the Welcome page appears you need to do 2 things:
      1. Add to the ZAPTEST Object Repository an object which represents mostly the Welcome page (For example, if a “Welcome” string appears this can be such object), this object ZAPTEST should find without any problems during runtime.
      2. Set the following condition:

      If Application(“App”).View(“View”).Object(“Welcome”).Exist Then
      Application(“App”).CustomReport True, “Welcome Success”, “The Welcome page appeared as expected.”, True
      Else
      Application(“App”).CustomReport False, “Welcome Error”, “The Welcome page did not appear.”, True
      End If

      You can set a waiting time till the Exist method will fail at the Tools -> Options -> Runtime -> Global Timeout (Its value is set in miliseconds).

      Thanks,
      ZAPTEST Team

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

    Virtual Expert

    ZAPTEST

    ZAPTEST Logo