Forum Discussion

joffre's avatar
joffre
Regular Contributor
12 years ago

TestComplete 9.30 WebApp Testing

Hi all. I'm trying to create a conditional that will verify if an object exists or not. However, on web applications, the web objects always exists in frame, but it's shown to the user on brows...
  • karkadil's avatar
    12 years ago
    First you need to make sure that object exists. In your case you can use WaitPanel method.

    http://support.smartbear.com/viewarticle/28602/



    T
    his method returns an object and you can verify its Exists property. After this you can make sure that object is visible on screen. Something like this

    var obj = Sys.......WaitPanel(..., ...);

    if (obj.Exists && obj.VisibleOnScreen)

    {

      obj.Click();

    }