Forum Discussion

Adagio's avatar
Adagio
Frequent Contributor
7 years ago

A condition in the if statement is causing problem

Hi,  I'm writing a script to test a java client. There's a dialog recognized as an SWTObject. If the dialog is not present, 'else' block  in the  following code should be executed, but something ...
  • cunderw's avatar
    cunderw
    7 years ago

    The exists method could be used if the object is mapped though, or using WaitProperty. 

  • AlexKaras's avatar
    7 years ago

    Hi Abhi,

     

    Replace SWTObject() call in your code with WaitSWTObject() one.