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

相关文章:

  • 2022-12-23
  • 2021-04-01
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-04-02
  • 2021-12-08
  • 2021-04-06
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案