macaca icon indicating copy to clipboard operation
macaca copied to clipboard

android真机,webview内元素touch失败

Open Samlin901211 opened this issue 6 years ago • 7 comments

失败信息: {"message":"[element.touch("tap")] Unexpected data in simpleCallback.","data":"unimplemented command: session/d68c38dd32ce15cdf7197584cee15efe/actions"} 请教下,这里是还没有实现的意思?

Samlin901211 avatar Feb 23 '19 18:02 Samlin901211

This is the translated issue:


Android real machine, element touch failure in webview

Failure message: {"message":"[element.touch("tap")] Unexpected data in simpleCallback.","data":"unimplemented command: session/d68c38dd32ce15cdf7197584cee15efe/actions"} Ask, is this what has not been realized?

macaca-bot avatar Feb 23 '19 18:02 macaca-bot

元素确定可以找的到,tap事件委托在document上

Samlin901211 avatar Feb 23 '19 18:02 Samlin901211

This is the translated issue comment: @Samlin901211


The element is determined to be found, and the tap event is delegated on the document.

macaca-bot avatar Feb 23 '19 18:02 macaca-bot

我用selenium是可以的,点击方法: from selenium.webdriver.common.touch_actions import TouchActions

Samlin901211 avatar Feb 23 '19 18:02 Samlin901211

This is the translated issue comment: @Samlin901211


I use selenium is OK, click on the method: From selenium.webdriver.common.touch_actions import TouchActions

macaca-bot avatar Feb 23 '19 18:02 macaca-bot

@Samlin901211 通过Macaca事件模拟touch就可以了吧?

https://macacajs.github.io/macaca-wd/#domEvent

xudafeng avatar Mar 23 '19 05:03 xudafeng

This is the translated issue comment: @xudafeng


@Samlin901211 Simulate touch with Macaca event, right?

Https://macacajs.github.io/macaca-wd/#domEvent

macaca-bot avatar Mar 23 '19 05:03 macaca-bot