Does Java Object Exist

Check to see if an object exists in the currently active Java application and place the result of the check (TRUE/FALSE) into a variable.

Support and Prerequisites: See Java Automation Commands Support and Prerequisites

  1. Select the Java object whose existence you want to check.

    After selecting the object, the following buttons become available (when relevant):

    • Click an object

    • Expand selection

    • Narrow selection

    • Highlight selected object

    • Use right-click for selection

    • Tree view

      Highlighting items with blue while hovering them is set to be off by default. To change that, change the key value <add key="FeatureFlag_JavaHighlight" value="false" /> to "true" in the appsettings.config file of the Studio.
  2. Enter the name of the variable into which you want to save the result of the query (TRUE/FALSE).

  3. Select the relevant option(s):

    • Is object visible

    • Identify by object text

      For specific identification: After selecting this checkbox, re-select the object and continue with the next steps.
  4. Select the Java search method by platform (Default, Awt, Swing, or JavaFx).

  5. Instruct the wizard how to handle any errors encountered. Read more about error handling.