Javascript 正在尝试使用nightwatch.js和appium刷卡。为什么不是';这不管用吗?

Javascript 正在尝试使用nightwatch.js和appium刷卡。为什么不是';这不管用吗?,javascript,appium,nightwatch.js,Javascript,Appium,Nightwatch.js,我有以下代码: module.exports = { "@tags": ["demo"], "demo_test_name": function (client) { client.url("https://www.google.com"); client.waitForElementPresent("body", 2000); client.swipe({ startX: 75, startY: 500, endX: 75,

我有以下代码:

module.exports = {
  "@tags": ["demo"],
  "demo_test_name": function (client) {
    client.url("https://www.google.com");
    client.waitForElementPresent("body", 2000);
    client.swipe({
      startX: 75,
      startY: 500,
      endX: 75,
      endY: 0,
      duration: 800
    });
  },
  before: function (client) {
    var wd = require("wd");
    client.swipe = function (opts) {
      var action = new wd.TouchAction(this);
      action
        .press({
          x: opts.startX,
          y: opts.startY
        })
        .wait(opts.duration)
        .moveTo({
          x: opts.endX,
          y: opts.endY
        })
        .release();
      return action.perform();
    };
  },
我收到这个错误

this.driver.performTouchAction is not a function

有没有因为夜视而无法工作的原因?几个月来,我一直在努力让刷卡在夜班工作。这是我最近的一次。实际上没有关于这方面的文档。

我也在找这个,你知道吗?不是所有的驱动程序都支持触摸操作。我也在找这个,你知道吗?不是所有的驱动程序都支持触摸操作。