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
- Wait Context for Java application to be ready
- Use Get Info to identify element properties
- Click Element or Set Text to interact
- Get Text or Get Value to read results
- 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
📄️ Click Element
Robomotion.JavaAutomation.ClickElement
📄️ Do Action
Robomotion.JavaAutomation.DoAction
📄️ Get Actions
Robomotion.JavaAutomation.GetActions
📄️ Get Combobox
Robomotion.JavaAutomation.GetCombobox
📄️ Get Info
Robomotion.JavaAutomation.GetInfo
📄️ Get Text
Robomotion.JavaAutomation.GetText
📄️ Get Title
Robomotion.JavaAutomation.GetTitle
📄️ Get Value
Robomotion.JavaAutomation.GetValue
📄️ Is Enabled
Robomotion.JavaAutomation.IsEnabled
📄️ Send Key
Robomotion.JavaAutomation.SendKey
📄️ Set Combobox
Robomotion.JavaAutomation.SetCombobox
📄️ Set Text
Robomotion.JavaAutomation.SetText
📄️ Wait Context
Robomotion.JavaAutomation.WaitContext