Files
appium/packages/universal-xml-plugin
github-actions e648569dfb chore: publish
- appium@3.6.0
 - @appium/base-driver@10.7.2
 - @appium/base-plugin@3.3.3
 - @appium/docutils@2.5.2
 - @appium/driver-test-support@2.0.1
 - @appium/eslint-config-appium-ts@3.2.4
 - @appium/execute-driver-plugin@6.0.7
 - @appium/fake-driver@6.2.2
 - @appium/fake-plugin@4.3.3
 - @appium/images-plugin@4.2.8
 - @appium/logger@2.0.10
 - @appium/opencv@4.1.7
 - @appium/oxc-config@1.1.0
 - @appium/plugin-test-support@2.0.1
 - @appium/relaxed-caps-plugin@2.2.5
 - @appium/schema@1.3.0
 - @appium/semantic-release-config@1.1.0
 - @appium/storage-plugin@1.1.8
 - @appium/strongbox@1.1.3
 - @appium/support@7.2.6
 - @appium/tsconfig@1.2.0
 - @appium/types@1.6.0
 - @appium/universal-xml-plugin@2.1.7
2026-07-25 06:12:06 +00:00
..
2026-07-25 06:12:06 +00:00
2026-07-25 06:12:06 +00:00

@appium/universal-xml-plugin

Appium plugin for transforming platform-specific XML into a universal syntax

NPM version Downloads

This plugin takes the XML page source retrieved using an iOS or Android driver, and changes various node and attribute names to use common terminology that can apply to both platforms.

Motivation

Having compatibility between iOS and Android XML sources can simplify creation of cross-platform tests.

Installation

appium plugin install universal-xml

Usage

Like all plugins, this plugin must be explicitly activated when launching the Appium server:

appium --use-plugins=universal-xml

Once the plugin is running, it will intercept and transform the app source retrieved by the Get Page Source command, as well as element node/attribute names provided in Find Element-related commands.

API

Refer to the Appium documentation.

Examples

Node names

iOS Android Transformed
XCUIElementTypeButton android.widget.Button Button
XCUIElementTypeAlert android.widget.Toast Alert
XCUIElementTypeSwitch android.widget.Switch SwitchInput

See the mapping file for a full list of node name translations. Any names not specified are left as-is.

Attribute names

iOS Android Transformed
name content-desc axId
label text text
visible displayed visible

Note that this plugin also removes a few attributes from the transformed XML. See the mapping file for a full list of attribute name translations and removed attributes. Any names not specified are left as-is.

License

Apache-2.0