(self, x1, y1, x2, y2, duration=0)
return self._session_http.post('/wda/dragfromtoforduration', data=data)
Args:
            x1, y1, x2, y2 (int, float): float(percent), int(coordicate)
            duration (float): start coordinate press duration (seconds)

        [[FBRoute POST:@"/wda/dragfromtoforduration"] respondWithTarget:self action:@selector(handleDragCoordinate:)],
Args:
            x1, y1, x2, y2 (int, float): float(percent), int(coordicate)
            duration (float): start coordinate press duration (seconds)
Args : x1 y1 x2 y2 ( int float ) : float ( percent ) int ( coordicate ) duration ( float ) : start coordinate press duration ( seconds )
def swipe(self, x1, y1, x2, y2, duration=0):
        """
        Args:
            x1, y1, x2, y2 (int, float): float(percent), int(coordicate)
            duration (float): start coordinate press duration (seconds)

        [[FBRoute POST:@"/wda/dragfromtoforduration"] respondWithTarget:self action:@selector(handleDragCoordinate:)],
        """
        if any(isinstance(v, float) for v in [x1, y1, x2, y2]):
            size = self.window_size()
            x1, y1 = self._percent2pos(x1, y1, size)
            x2, y2 = self._percent2pos(x2, y2, size)

        data = dict(fromX=x1, fromY=y1, toX=x2, toY=y2, duration=duration)
        return self._session_http.post('/wda/dragfromtoforduration', data=data)
def swipe ( self , x1 , y1 , x2 , y2 , duration = 0 ) : if any ( isinstance ( v , float ) for v in [ x1 , y1 , x2 , y2 ] ) : size = self . window_size ( ) x1 , y1 = self . _percent2pos ( x1 , y1 , size ) x2 , y2 = self . _percent2pos ( x2 , y2 , size ) data = dict ( fromX = x1 , fromY = y1 , toX = x2 , toY = y2 , duration = duration ) return self . _session_http . post ( '/wda/dragfromtoforduration' , data = data )