def long_click(self, pos, duration=2.0):
        """
        Similar to click but press the screen for the given time interval and then release

        Args:
            pos (:obj:`2-list/2-tuple`): coordinates (x, y) in range from 0 to 1
            duration: duration of press the screen
        """

        try:
            duration = float(duration)
        except ValueError:
            raise ValueError('Argument `duration` should be <float>. Got {}'.format(repr(duration)))

        if not (0 <= pos[0] <= 1) or not (0 <= pos[1] <= 1):
            raise InvalidOperationException('Click position out of screen. {}'.format(repr(pos)))
        return self.agent.input.longClick(pos[0], pos[1], duration)
def long_click ( self , pos , duration = 2.0 ) : try : duration = float ( duration ) except ValueError : raise ValueError ( 'Argument `duration` should be <float>. Got {}' . format ( repr ( duration ) ) ) if not ( 0 <= pos [ 0 ] <= 1 ) or not ( 0 <= pos [ 1 ] <= 1 ) : raise InvalidOperationException ( 'Click position out of screen. {}' . format ( repr ( pos ) ) ) return self . agent . input . longClick ( pos [ 0 ] , pos [ 1 ] , duration )
Similar to click but press the screen for the given time interval and then release

        Args:
            pos (:obj:`2-list/2-tuple`): coordinates (x, y) in range from 0 to 1
            duration: duration of press the screen