(self, name: str)
Args:
            name: one of <home|volumeUp|volumeDown>
Args:
            name: one of <home|volumeUp|volumeDown>
Args : name : one of <home|volumeUp|volumeDown >
def press(self, name: str):
        """
        Args:
            name: one of <home|volumeUp|volumeDown>
        """
        valid_names = ("home", "volumeUp", "volumeDown")
        if name not in valid_names:
            raise ValueError(
                f"Invalid name: {name}, should be one of {valid_names}")
        self._session_http.post("/wda/pressButton", {"name": name})
def press ( self , name : str ) : valid_names = ( "home" , "volumeUp" , "volumeDown" ) if name not in valid_names : raise ValueError ( f"Invalid name: {name}, should be one of {valid_names}" ) self . _session_http . post ( "/wda/pressButton" , { "name" : name } )