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

Method _add_commands

appium/webdriver/extensions/context.py:60–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 return self.current_context
59
60 def _add_commands(self) -> None:
61 self.command_executor.add_command(Command.CONTEXTS, 'GET', '/session/$sessionId/contexts')
62 self.command_executor.add_command(Command.GET_CURRENT_CONTEXT, 'GET', '/session/$sessionId/context')
63 self.command_executor.add_command(Command.SWITCH_TO_CONTEXT, 'POST', '/session/$sessionId/context')

Callers

nothing calls this directly

Calls 1

add_commandMethod · 0.45

Tested by

no test coverage detected