随笔 - 37,  文章 - 0,  评论 - 10,  阅读 - 43549
def swipe_ele_left(self, ele, dur=800):
        """
        基于控件元素左滑操作
        :param ele: 控件元素
        :param dur: 在多少时间内完成滑动动作(单位:ms毫秒)
        :return:
        """
        start_x = int(ele.rect["width"]) - 20
        end_x = int(ele.rect["x"])
        height = int(ele.rect["y"]) + int(ele.rect["height"]) / 2
        self.driver.swipe(start_x, height, end_x, height,duration=dur)
        sleep(1)
        return self
posted on   91parson  阅读(270)  评论(0编辑  收藏  举报

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示