How to use the appium-uiautomator2-driver.AndroidUiautomator2Driver function in appium-uiautomator2-driver

To help you get started, we’ve selected a few appium-uiautomator2-driver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NewsUKArchive / dextrose / src / setup-appium.js View on Github external
const androidAppium = async (config) => {
    let defaultCaps = {
        app: config.app,
        deviceName: config.deviceName,
        platformName: config.platformName,
        automationName: 'uiautomator2'
      };

      let driver = new AndroidUiautomator2Driver();
      await driver.createSession(defaultCaps);
}

appium-uiautomator2-driver

UiAutomator2 integration for Appium

Apache-2.0
Latest version published 3 days ago

Package Health Score

83 / 100
Full package analysis