收藏
回答

小程序自动化input组件使用input方法输入时报错?

自动化代码片段

    const element = await page.$('.index-input')
    await element.input('test')


执行结果报错:

    webview Element.callFunction unimplemented


      at Transport.Connection.onMessage (node_modules/miniprogram-automator/out/Connection.js:1:986)
      at WebSocket. (node_modules/miniprogram-automator/out/Transport.js:1:219)
      at WebSocket.onMessage (node_modules/ws/lib/event-target.js:120:16)
      at Receiver.receiverOnMessage (node_modules/ws/lib/websocket.js:789:20)
      at Receiver.dataMessage (node_modules/ws/lib/receiver.js:422:14)
      at Receiver.getData (node_modules/ws/lib/receiver.js:352:17)
      at Receiver.startLoop (node_modules/ws/lib/receiver.js:138:22)
      at Receiver._write (node_modules/ws/lib/receiver.js:74:10)
      at Socket.socketOnData (node_modules/ws/lib/websocket.js:864:35)


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签