def scroll(self, direction='<STR_LIT>', distance=<NUM_LIT:1.0>):
if direction == '<STR_LIT>':<EOL><INDENT>self._wda_req('<STR_LIT>', '<STR_LIT>', {'<STR_LIT>': True})<EOL><DEDENT>elif direction in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT:left>', '<STR_LIT:right>']:<EOL><INDENT>self._wda_req('<STR_LIT>', '<STR_LIT>', {'<STR_LIT>': direction, '<STR_LIT>': distance})<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return self<EOL>
Args:
    direction (str): one of "visible", "up", "down", "left", "right"
    distance (float): swipe distance, only works when direction is not "visible"

Raises:
    ValueError

distance=1.0 means, element (width or height) multiply 1.0