MCPcopy Index your code
hub / github.com/appium/python-client / get_log

Method get_log

appium/webdriver/extensions/logs.py:35–49  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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')

Callers 1

test_get_logFunction · 0.80

Calls 1

executeMethod · 0.45

Tested by 1

test_get_logFunction · 0.64