• @vicki
    @xuxu xu

    我也是用了这个方法
    new TouchAction(driver).press(startX+ 2*stepX, startY).moveTo(startX+2*stepX, startY+ stepY).release().perform();

    但是没有成功 能帮我看下什么原因吗。

    debug: Responding to client with success: {"status":0,"value":null,"sessionId":"fd7369ec-e21e-49e1-8683-58e83f5990ea"}
    debug: Appium request initiated at /wd/hub/session/fd7369ec-e21e-49e1-8683-58e83f5990ea/touch/perform
    debug: Request received with params: {"actions":[{"options":{"x":160,"y":549},"action":"press"},{"options":{"x":560,"y":549},"action":"moveTo"}]}
    debug: Pushing command to appium work queue: ["element:touchDown",{"x":160,"y":549}]
    debug: [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:touchDown","params":{"x":160,"y":549}}
    debug: [BOOTSTRAP] [debug] Got command of type ACTION
    debug: [BOOTSTRAP] [debug] Got command action: touchDown
    debug: Pushing command to appium work queue: ["element:touchMove",{"x":560,"y":549}]
    debug: [BOOTSTRAP] [debug] Performing TouchDown using element? false x: 160, y: 549
    debug: [BOOTSTRAP] [debug] Updating class "class com.android.uiautomator.core.UiDevice" to enable field "mUiAutomationBridge"
    debug: [BOOTSTRAP] [debug] Updating class "class com.android.uiautomator.core.UiAutomatorBridge" to enable field "mInteractionController"
    debug: [BOOTSTRAP] [debug] Finding methods on class: class com.android.uiautomator.core.InteractionController
    debug: [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
    debug: [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:touchMove","params":{"x":560,"y":549}}
    debug: [BOOTSTRAP] [debug] Got command of type ACTION
    debug: [BOOTSTRAP] [debug] Got command action: touchMove
    debug: [BOOTSTRAP] [debug] Performing TouchMove using element? false x: 560, y: 549