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

appium-uiautomator2-server

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-uiautomator2-server

A netty server with uiautomator2 handlers


Version published
Weekly downloads
206K
increased by34.74%
Maintainers
10
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

FAQs

Package last updated on 30 Aug 2022

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