
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@appium/universal-xml-plugin
Advanced tools
Appium plugin for making XML source and XPath queries the same across iOS and Android
Appium plugin for transforming platform-specific XML into a universal syntax
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.
Having compatibility between iOS and Android XML sources can simplify creation of cross-platform tests.
appium plugin install universal-xml
The plugin must be explicitly activated when launching the Appium server:
appium --use-plugins=universal-xml
| 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.
| 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.
Apache-2.0
FAQs
Appium plugin for making XML source and XPath queries the same across iOS and Android
The npm package @appium/universal-xml-plugin receives a total of 2,149 weekly downloads. As such, @appium/universal-xml-plugin popularity was classified as popular.
We found that @appium/universal-xml-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.