(self, x, y, duration=1.0)
return self._session_http.post('/wda/touchAndHold', data=data)
Tap and hold for a moment

        Args:
            - x, y(int, float): float(percent) or int(absolute coordicate)
            - duration(float): seconds of hold time

        [[FBRoute POST:@"/wda/touchAndHold"] respondWithTarget:self action:@selector(handleTouchAndHoldCoordinate:)],
Tap and hold for a moment
Tap and hold for a moment
def tap_hold(self, x, y, duration=1.0):
        """
        Tap and hold for a moment

        Args:
            - x, y(int, float): float(percent) or int(absolute coordicate)
            - duration(float): seconds of hold time

        [[FBRoute POST:@"/wda/touchAndHold"] respondWithTarget:self action:@selector(handleTouchAndHoldCoordinate:)],
        """
        x, y = self._percent2pos(x, y)
        data = {'x': x, 'y': y, 'duration': duration}
        return self._session_http.post('/wda/touchAndHold', data=data)
def tap_hold ( self , x , y , duration = 1.0 ) : x , y = self . _percent2pos ( x , y ) data = { 'x' : x , 'y' : y , 'duration' : duration } return self . _session_http . post ( '/wda/touchAndHold' , data = data )