How to get id attribute for command field where we enter the T code in SAP GUI for java in mac OS. When I am indicating from studio web i am getting ‘ax’ tags but I want ‘sap’ tags with id attribute.
for SAP GUI running on macOS/Java, Studio Web may identify the elements using AX accessibility attributes instead of the SAP-specific selectors.
If you specifically need the SAP tag with the ID, that may not be available through Studio Web’s current SAP UI automation approach. I would suggest checking the SAP GUI version and the UiPath SAP automation support for your environment.
On macOS with SAP GUI for Java, UiPath may expose the application elements through the macOS Accessibility (AX) framework. Therefore, when using Studio Web, you may see ax tags instead of native SAP elements and sap selectors with ID attributes.
The availability of native SAP selectors depends on the SAP GUI version, operating system, and UiPath integration/support. The selector behavior on SAP GUI for Java on macOS can be different from SAP GUI for Windows.
As a workaround, you can try using the available AX attributes and make the target more reliable using stable properties such as name, role, or other unique attributes. You can also try Computer Vision or keyboard-based automation for the T-code command field if a stable selector is not available.
It would also be helpful to share your SAP GUI for Java version and UiPath Studio Web/Assistant version so the exact supported approach can be confirmed.
Since you are using SAP GUI for Java on macOS, the ax tags are expected because UiPath is interacting with the macOS Accessibility (AX) framework.
The SAP-specific sap attributes/IDs are generally available through the SAP-specific integration/selector mechanism on supported SAP environments. If Studio Web is identifying the element through the macOS accessibility layer, you may not get the same sap tag and ID that you would see with SAP GUI on Windows.
I would recommend checking whether the required SAP GUI automation features are supported for SAP GUI for Java on macOS and, if not, using the available accessibility attributes or a supported SAP automation environment.