How to use appium-uiautomator2-driver - 2 common examples

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 truongsinh / appium-flutter-driver / driver / lib / sessions / android.ts View on Github external
const setupNewAndroidDriver = async (caps) => {
  const androidArgs = {
    javascriptEnabled: true,
  };
  const androiddriver = new AndroidDriver(androidArgs);
  const capsCopy = Object.assign({}, caps, { newCommandTimeout: 0 });

  await androiddriver.createSession(capsCopy);

  return androiddriver;
};
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 20 hours ago

Package Health Score

83 / 100
Full package analysis