Gets the log for a given log type. Args: log_type: Type of log that which will be returned Example: .. code-block:: python driver.get_log('browser') driver.get_log('driver') driver.get_log('client')
(self, log_type: str)
| 33 | return self.execute(Command.GET_AVAILABLE_LOG_TYPES)['value'] |
| 34 | |
| 35 | def get_log(self, log_type: str) -> List[Dict[str, Any]]: |
| 36 | """Gets the log for a given log type. |
| 37 | |
| 38 | Args: |
| 39 | log_type: Type of log that which will be returned |
| 40 | |
| 41 | Example: |
| 42 | .. code-block:: python |
| 43 | |
| 44 | driver.get_log('browser') |
| 45 | driver.get_log('driver') |
| 46 | driver.get_log('client') |
| 47 | driver.get_log('server') |
| 48 | """ |
| 49 | return self.execute(Command.GET_LOG, {'type': log_type})['value'] |
| 50 | |
| 51 | def _add_commands(self) -> None: |
| 52 | self.command_executor.add_command(Command.GET_LOG, 'POST', '/session/$sessionId/se/log') |