Forum Discussion

martin_facchini's avatar
martin_facchini
Contributor
10 years ago

"If Object Exists" is still running child opeations when object DOES NOT exits

I’m checking to see if our application was left in an open state before running the entire project suite. The test app, 95% of the time, would be left open in one of three main forms: login screen, t...
  • Ryan_Moran's avatar
    Ryan_Moran
    10 years ago

     

    You can use the If Object wizard under Test Actions for your keyword test. It should then have the Visible property available to select from on the Select Condition page of the wizard. If you're not using keyword tests then your script should be like so:

     

    //JScript

    function main() {
     if (Aliases.PixelPointPOS.wndSystemObject.FormShape_InnerPanel.Panel.PixelButton.Visible == true){
      //dostuff
     }
    }

     

     

    //Make sure you spell it VISIBLE :)