appium启动应用程序,但不会自动化

时间:2018-06-11 10:37:09

标签: android appium webdriver-io uiautomator appium-android

这是我的配置

  • 平台:Macbook pro 10.12.6
  • Appium Desktop:1.6.1
  • Appium Server:1.8.0
  • 移动应用:在Android模拟器上运行的原生应用
  • Android模拟器:Nexus_5X_API_24
  • Android版本:7.0
  • 客户端库:Webdriverio(javascript)

Appium在模拟器中启动应用程序,但之后无法执行任何操作。它无法找到元素。 Here是完整的appium日志

// Requires the webdriverio client library
// (npm install webdriverio)
// Then paste this into a .js file and run with Node:
// node <file>.js

const wdio = require('webdriverio');
const caps = {"platformName":"Android","platformVersion":"7.0","deviceName":"Nexus_5X_API_24","app":"/app/build/outputs/apk/debug/app-debug.apk","automationName":"UiAutomator2","autoWebView" :"false"};
const driver = wdio.remote({
  protocol: "http",
  host: "localhost",
  port: 4723,
  path: "/wd/hub",
  desiredCapabilities: caps
});


driver.init();
    .element("com.androidappapp.androidappclient:id/input_email")
    .setValue('test@test.com')
    .end();

0 个答案:

没有答案