Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@appium/universal-xml-plugin

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appium/universal-xml-plugin

Appium plugin for making XML source and XPath queries the same across iOS and Android

latest
Source
npmnpm
Version
2.1.4
Version published
Weekly downloads
956
-38.12%
Maintainers
3
Weekly downloads
 
Created
Source

@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. This is achieved by altering the behavior of the getPageSource and findElement methods.

Motivation

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

Installation

appium plugin install universal-xml

The plugin must be explicitly activated when launching the Appium server:

appium --use-plugins=universal-xml

Examples

Node names

iOSAndroidTransformed
XCUIElementTypeButtonandroid.widget.ButtonButton
XCUIElementTypeAlertandroid.widget.ToastAlert
XCUIElementTypeSwitchandroid.widget.SwitchSwitchInput

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

Attribute names

iOSAndroidTransformed
namecontent-descaxId
labeltexttext
visibledisplayedvisible

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

Keywords

automation

FAQs

Package last updated on 31 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts