Skip to main content

Java Automation

Automate Java Swing and AWT desktop applications by accessing their internal UI elements and controls directly.

Overview

The Java Automation package enables automation of Java-based desktop applications using the Java Access Bridge. Use it when you need to interact with Java Swing/AWT applications, read values from Java UI components, or automate legacy Java desktop software.

Key Features

  • Element Interaction - Click, type, and interact with Java UI elements
  • Text Operations - Read and set text in Java controls
  • Combobox Control - Get and set combobox selections
  • State Detection - Check if elements are enabled
  • Action Execution - Trigger accessible actions on elements

Available Nodes

  • Click Element - Click on a Java UI element
  • Get Text - Read text from a Java element
  • Set Text - Enter text into a Java element
  • Get Value - Get the value of a Java component
  • Get Title - Get window or element title
  • Get Info - Get detailed element information
  • Get Combobox - Get current combobox selection
  • Set Combobox - Select combobox item
  • Is Enabled - Check if element is enabled
  • Get Actions - List available actions for element
  • Do Action - Execute an accessible action
  • Send Key - Send keyboard input to element
  • Wait Context - Wait for Java context to be ready

When to Use This Package

  • Java Desktop Apps: Automate Swing/AWT applications
  • Legacy Enterprise Software: Work with Java-based business applications
  • Cross-Platform Java Apps: Automate Java apps on Windows
  • ERP Systems: Many ERP systems use Java frontends

Prerequisites

  • Java Access Bridge must be enabled on the target machine
  • The Java application must support accessibility

Typical Workflow

  1. Wait Context for Java application to be ready
  2. Use Get Info to identify element properties
  3. Click Element or Set Text to interact
  4. Get Text or Get Value to read results
  5. Get Combobox / Set Combobox for dropdown controls

Tips

  • Use Java Access Bridge Explorer to identify element roles and names
  • Enable accessibility in the Java application settings
  • Use Wait Context for reliable synchronization