attach_java_swing
Inject the Java accessibility agent into the JVM of the current session window to enable element discovery using Java class names and accessible names instead of UIA.
Instructions
Inject the Java accessibility agent into the JVM owning the current session window. Use this after creating a session (with app or appTopLevelWindow) when javaSwing was NOT set at session creation time. Once called, element finding will use Java class names and accessible names instead of UIA.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jdkPath | No | Path to the JDK installation (e.g. "C:\\Program Files\\Eclipse Adoptium\\jdk-21"). Overrides the jdkPath session capability. |