简体   繁体   English

在移动设备上滑动(iPad设置屏幕)始终在右半部分滑动。 如何在左半部分执行滑动

[英]Swipe on mobile device (iPad Settings screen) always swipe on right half. How to perform Swipe in Left half

I need to swipe on IPad settings screen. 我需要在IPad设置屏幕上滑动。 Ipad setting screen have options on left and based on option selected, You will get right half of screen. Ipad设置屏幕左侧有选项,根据选项选择,您将获得屏幕的右半部分。

Now with Swipe command in Seetest( A tool based on Appium) it always perform swipe in right half. 现在使用Seetest中的滑动命令(基于Appium的工具),它总是在右半部分执行滑动。 Is there a way to perform Swipe on left half? 有没有办法在左半边执行滑动?

I have used Swipe command. 我使用了滑动命令。 Swipe(Direction, Offset, Time) 滑动(方向,偏移,时间)

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

Expected : Should swipe on left half. 预期:应该在左半边滑动。

Actual: It always swipe in right half. 实际:它总是在右半边滑动。

在此输入图像描述

Check out this code seetest .elementSwipeWhileNotFound("NATIVE", "id=nav_drawer", "Down", 0, 2000, "NATIVE", "text=History", 0, 1000, 5, true) This code would swipe inside the element 'id=nav_drawer' until it finds 'text=History'. 看看这个代码seetest .elementSwipeWhileNotFound("NATIVE", "id=nav_drawer", "Down", 0, 2000, "NATIVE", "text=History", 0, 1000, 5, true)这段代码会在里面滑动元素'id = nav_drawer'直到找到'text = History'。 You can find the detailed information here . 您可以在此处找到详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM