【问题标题】:Swipe on mobile device (iPad Settings screen) always swipe on right half. How to perform Swipe in Left half在移动设备上滑动(iPad 设置屏幕)始终在右半边滑动。如何在左半部分执行滑动
【发布时间】:2019-08-20 20:25:39
【问题描述】:

我需要在 iPad 设置屏幕上滑动。 Ipad 设置屏幕左侧有选项,根据选择的选项,您将获得屏幕的右半部分。

现在在 Seetest(基于 Appium 的工具)中使用 Swipe 命令,它总是在右半部分执行滑动。 有没有办法在左半边执行滑动?

我使用过滑动命令。 滑动(方向、偏移、时间)

@Test
    public void testUntitled(){
        client.setDevice("<Device Name>");
        client.click("NATIVE", "xpath=//*[@text='General' and @class='UIAStaticText']", 0, 1);
        client.swipe("Down", 292, 603);
    }

预期:应该在左半边滑动。

实际:它总是在右半边滑动。

【问题讨论】:

    标签: ios mobile ui-automation appium-ios seetest


    【解决方案1】:

    查看此代码seetest .elementSwipeWhileNotFound("NATIVE", "id=nav_drawer", "Down", 0, 2000, "NATIVE", "text=History", 0, 1000, 5, true) 此代码将在元素“id=nav_drawer”内滑动,直到找到“text=History”。您可以找到详细信息here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-03
      • 2017-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多