Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appium-uiautomator2-server

Package Overview
Dependencies
Maintainers
9
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-uiautomator2-server

A netty server with uiautomator2 handlers

  • 7.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
266K
increased by4.62%
Maintainers
9
Weekly downloads
 
Created

What is appium-uiautomator2-server?

The appium-uiautomator2-server npm package is a server component for the Appium automation framework that uses Google's UiAutomator2 library to automate Android applications. It allows for advanced interactions with Android devices, including finding elements, performing gestures, and executing commands.

What are appium-uiautomator2-server's main functionalities?

Finding Elements

This feature allows you to find elements on the screen using various strategies such as accessibility id, class name, XPath, etc.

const { UiAutomator2Driver } = require('appium-uiautomator2-driver');
const driver = new UiAutomator2Driver();
await driver.findElement('accessibility id', 'myElementId');

Performing Gestures

This feature allows you to perform touch gestures like tap, swipe, and pinch on the device screen.

const { UiAutomator2Driver } = require('appium-uiautomator2-driver');
const driver = new UiAutomator2Driver();
await driver.performTouch([{ action: 'tap', options: { x: 100, y: 200 } }]);

Executing Commands

This feature allows you to execute shell commands on the Android device, providing a way to interact with the device at a lower level.

const { UiAutomator2Driver } = require('appium-uiautomator2-driver');
const driver = new UiAutomator2Driver();
await driver.execute('mobile: shell', { command: 'input text', args: ['Hello World'] });

Other packages similar to appium-uiautomator2-server

Keywords

FAQs

Package last updated on 15 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc