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

appium-uiautomator2-driver

Package Overview
Dependencies
Maintainers
0
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-uiautomator2-driver

UiAutomator2 integration for Appium

  • 3.7.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
266K
increased by8.13%
Maintainers
0
Weekly downloads
 
Created

What is appium-uiautomator2-driver?

The appium-uiautomator2-driver is an npm package that provides a driver for Appium to automate Android applications using the UIAutomator2 framework. It allows for the automation of various tasks on Android devices, such as interacting with UI elements, performing gestures, and retrieving device information.

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

Finding Elements

This feature allows you to find UI elements on the screen using different locators such as ID, class name, XPath, etc.

const { AndroidUiautomator2Driver } = require('appium-uiautomator2-driver');
const driver = new AndroidUiautomator2Driver();
await driver.findElement('id', 'com.example:id/button');

Performing Gestures

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

const { AndroidUiautomator2Driver } = require('appium-uiautomator2-driver');
const driver = new AndroidUiautomator2Driver();
await driver.performTouchAction({
  action: 'tap',
  options: { element: 'com.example:id/button' }
});

Retrieving Device Information

This feature allows you to retrieve information about the device, such as its model, manufacturer, and OS version.

const { AndroidUiautomator2Driver } = require('appium-uiautomator2-driver');
const driver = new AndroidUiautomator2Driver();
const deviceInfo = await driver.getDeviceInfo();
console.log(deviceInfo);

Other packages similar to appium-uiautomator2-driver

Keywords

FAQs

Package last updated on 14 Aug 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